Skip to content

Commit

Permalink
Update release actions and use zip for xcframework
Browse files Browse the repository at this point in the history
  • Loading branch information
simlay committed Apr 23, 2024
1 parent 438beb3 commit 22c4ae8
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
x86_64-apple-darwin

- name: Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/bin
Expand All @@ -42,15 +42,17 @@ jobs:
with:
tool: cargo-make
- name: Build XCFramework
run: cargo make --profile release uniffi-xcframework
run: |
cargo make --profile release uniffi-xcframework
ditto -c -k --sequesterRsrc --keepParent target/uniffi/swift/liveview_native_core.xcframework/ target/uniffi/swift/liveview_native_core.xcframework.zip
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
retention-days: 5
name: liveview_native_core.xcframework
path: ./target/uniffi/swift/liveview_native_core.xcframework/
path: ./target/uniffi/swift/liveview_native_core.xcframework.zip

- uses: actions/github-script@v6
- uses: actions/github-script@v7
if: github.ref == 'refs/heads/main'
continue-on-error: true
with:
Expand Down Expand Up @@ -78,9 +80,9 @@ jobs:
ref: 'tags/nightly'
})
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: github.ref == 'refs/heads/main'
with:
files: liveview_native_core.xcframework
files: liveview_native_core.xcframework.zip
name: nightly
tag_name: nightly

0 comments on commit 22c4ae8

Please sign in to comment.