Skip to content

Commit

Permalink
[ffigen][infra] Use Apple silicon on CI (#832)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcharkes authored Nov 28, 2023
1 parent 0051e78 commit f122181
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ffigen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ jobs:

test-mac:
needs: analyze
runs-on: macos-latest
strategy:
matrix:
host:
- 'macos-latest'
- 'macos-latest-xlarge' # Arm64.
runs-on: ${{ matrix.host }}
defaults:
run:
working-directory: pkgs/ffigen/
Expand All @@ -85,19 +90,22 @@ jobs:
run: dart test --platform vm --concurrency=1
- name: Collect coverage
run: ./tool/coverage.sh
if: ${{ matrix.host == 'macos-latest' }}
- name: Upload coverage
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949
with:
flag-name: ffigen_macos
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
path-to-lcov: pkgs/ffigen/lcov.info
if: ${{ matrix.host == 'macos-latest' }}
- name: Upload coverage
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949
with:
carryforward: "jnigen_tests,jni_tests,native_assets_builder_macos,native_assets_builder_ubuntu,native_assets_builder_windows,native_assets_cli_macos,native_assets_cli_ubuntu,native_assets_cli_windows,native_toolchain_c_macos,native_toolchain_c_ubuntu,native_toolchain_c_windows"
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
if: ${{ matrix.host == 'macos-latest' }}

test-windows:
needs: analyze
Expand Down

0 comments on commit f122181

Please sign in to comment.