This repository was archived by the owner on Sep 1, 2026. It is now read-only.
chore(deps): update rust crate uniffi_build to 0.32.0 #39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - "**" | |
| tags: | |
| - "v[0-9]+.[0-9]+.[0-9]+" | |
| paths-ignore: | |
| - "**/*.md" | |
| - "**/*.gitignore" | |
| - "**/*.gitattributes" | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ${{matrix.os}} | |
| timeout-minutes: 65 | |
| permissions: | |
| contents: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| [ | |
| # ubuntu-24.04, | |
| # ubuntu-24.04-arm, | |
| macos-15, | |
| # windows-2025, | |
| # windows-11-arm, | |
| ] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup dotnet | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.x.x | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| name: Setup Rust | |
| with: | |
| target: ${{ contains(matrix.os, 'macos') && 'x86_64-apple-darwin' || '' }} | |
| # toolchain: 1.88 | |
| - name: Cargo build | |
| run: cargo build --release | |
| - name: Create macOS Universal Binary | |
| if: contains(matrix.os, 'macos') | |
| run: | | |
| cargo build --release --target x86_64-apple-darwin | |
| mkdir -p dist/osx | |
| lipo -create \ | |
| target/release/libsnapxrust.dylib \ | |
| target/x86_64-apple-darwin/release/libsnapxrust.dylib \ | |
| -output dist/osx/libsnapxrust.dylib | |
| file dist/osx/libsnapxrust.dylib | |
| - name: Pack Nuget | |
| run: dotnet pack -c Release -o artifacts | |
| - name: Upload Nuget | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: Nuget | |
| path: artifacts/*.nupkg | |
| if-no-files-found: error |