Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ jobs:
- name: Install MAUI workloads
run: dotnet workload install android ios
- name: Download Screeb iOS XCFramework
env:
GH_TOKEN: ${{ github.token }}
run: |
SCREEB_IOS_URL=$(curl -sL https://api.github.com/repos/ScreebApp/sdk-ios-public/releases/latest | python3 -c "import sys,json; print(next(a['browser_download_url'] for a in json.load(sys.stdin)['assets'] if a['name']=='Screeb.zip'))")
curl -sL "$SCREEB_IOS_URL" -o /tmp/Screeb.zip
unzip -q /tmp/Screeb.zip -d /tmp/screeb_ios
mkdir -p packages/sdk-maui/native/ios
gh release download --repo ScreebApp/sdk-ios-public --pattern 'Screeb.zip' --output /tmp/Screeb.zip --clobber
unzip -q /tmp/Screeb.zip -d /tmp/screeb_ios
cp -r /tmp/screeb_ios/Screeb.xcframework packages/sdk-maui/native/ios/
- name: Restore
run: dotnet restore packages/sdk-maui/ScreebMaui.csproj
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/publish-maui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ jobs:
run: dotnet workload install android ios

- name: Download Screeb iOS XCFramework
env:
GH_TOKEN: ${{ github.token }}
run: |
SCREEB_IOS_URL=$(curl -sL https://api.github.com/repos/ScreebApp/sdk-ios-public/releases/latest | python3 -c "import sys,json; print(next(a['browser_download_url'] for a in json.load(sys.stdin)['assets'] if a['name']=='Screeb.zip'))")
curl -sL "$SCREEB_IOS_URL" -o /tmp/Screeb.zip
unzip -q /tmp/Screeb.zip -d /tmp/screeb_ios
mkdir -p packages/sdk-maui/native/ios
gh release download --repo ScreebApp/sdk-ios-public --pattern 'Screeb.zip' --output /tmp/Screeb.zip --clobber
unzip -q /tmp/Screeb.zip -d /tmp/screeb_ios
cp -r /tmp/screeb_ios/Screeb.xcframework packages/sdk-maui/native/ios/

- name: Restore
Expand Down
Loading