| # Run the ffigen tests on apple silicon once a week. Unlike the other GitHub |
| # CI hosts, this one isn't free, so we don't run it on every commit. |
| |
| name: ffigen_weekly |
| |
| on: |
| # Run once a week. |
| schedule: |
| - cron: "0 0 * * 0" |
| |
| env: |
| PUB_ENVIRONMENT: bot.github |
| |
| jobs: |
| # Keep in sync with ffigen.yaml:test-mac |
| test-mac-arm64: |
| runs-on: 'macos-latest-xlarge' # Arm64. |
| defaults: |
| run: |
| working-directory: pkgs/ffigen/ |
| steps: |
| - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 |
| - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 |
| with: |
| flutter-version: 3.19.0 |
| channel: 'stable' |
| - name: Install dependencies |
| run: flutter pub get |
| - name: Build test dylib and bindings |
| run: dart test/setup.dart |
| - name: Run VM tests |
| run: dart test |