chore: Prepare for publishing #90
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: cedar_ffi | |
| on: | |
| pull_request: | |
| paths: | |
| - ".github/workflows/cedar_ffi.yaml" | |
| - "packages/cedar/**" | |
| - "packages/cedar_ffi/**" | |
| # Prevent duplicate runs due to Graphite | |
| # https://graphite.dev/docs/troubleshooting#why-are-my-actions-running-twice | |
| concurrency: | |
| group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}-${{ github.ref == 'refs/heads/main' && github.sha || ''}} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: bash | |
| working-directory: packages/cedar_ffi | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - macos-14 | |
| - windows-latest | |
| runs-on: ${{ matrix.os }} | |
| # TODO(dnys1): Speed up Rust builds | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Git Checkout | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2 | |
| with: | |
| submodules: true | |
| - name: Setup Dart | |
| uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c # main | |
| with: | |
| # Remove when released to stable: https://github.com/dart-lang/native/pull/1921 | |
| sdk: beta | |
| - name: Setup Rust | |
| uses: actions-rust-lang/setup-rust-toolchain@9399c7bb15d4c7d47b27263d024f0a4978346ba4 # 1.11.0 | |
| - name: Get Packages | |
| run: dart pub get | |
| - name: Test | |
| # TODO: Failing for some reason | |
| # run: dart --enable-experiment=native-assets test --fail-fast | |
| run: dart --enable-experiment=native-assets run bin/example.dart | |
| working-directory: packages/cedar_ffi/example |