From 052e26caa1e4ecd4c81b3bf81cb1173910d589eb Mon Sep 17 00:00:00 2001 From: Daco Harkes Date: Mon, 27 Nov 2023 12:20:39 +0100 Subject: [PATCH] [ffigen][infra] Use Apple silicon on CI --- .github/workflows/ffigen.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ffigen.yml b/.github/workflows/ffigen.yml index b94f59809..996e2c79c 100644 --- a/.github/workflows/ffigen.yml +++ b/.github/workflows/ffigen.yml @@ -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/ @@ -85,6 +90,7 @@ 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: @@ -92,12 +98,14 @@ jobs: 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