From 9240f499efdd970bfc83252f67c30df07fb9c4ac Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Mon, 20 Sep 2021 01:50:07 +0900 Subject: [PATCH] CI for Apple Silicon --- .github/workflows/ci.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 03fc352f6..5db4b99e8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -23,7 +23,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [macos-latest, ubuntu-latest, windows-latest] + os: [macos-11, ubuntu-latest, windows-latest] fail-fast: false steps: - uses: actions/checkout@v2 @@ -49,6 +49,18 @@ jobs: command: check args: ${{ env.CARGO_ARGS }} --no-default-features + - name: prepare AppleSilicon build + uses: actions-rs/toolchain@v1 + with: + target: aarch64-apple-darwin + if: runner.os == 'macOS' + - name: Check compilation for Apple Silicon + uses: actions-rs/cargo@v1 + with: + command: check + args: --target aarch64-apple-darwin + if: runner.os == 'macOS' + exotic_targets: name: Ensure compilation on exotic targets runs-on: ubuntu-latest