Skip to content

chore: Migrate to pub workspaces #82

chore: Migrate to pub workspaces

chore: Migrate to pub workspaces #82

Workflow file for this run

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@e630b99d28a3b71860378cafdc2a067c71107f94 # 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@11df97af8e8102fd60b60a77dfbf58d40cd843b8 # 1.10.1
- 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