From c2f32e992acf83a9b10b4ea238e8b777b6d5c174 Mon Sep 17 00:00:00 2001 From: Vincent Thiberville Date: Mon, 9 Dec 2024 02:09:07 +0100 Subject: [PATCH] ci: add arm64 macos runner --- .github/workflows/ci.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 912bf3af..af7b0a6d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -135,13 +135,22 @@ jobs: target: i686-pc-windows-msvc test-macos: - name: Test Macos 13 - runs-on: macos-13 + name: Test ${{matrix.runner}} + runs-on: ${{matrix.runner}} env: RUSTFLAGS: -Dwarnings steps: + - name: Setup openssl + run: | + pkg-config --cflags libcrypto + pkg-config --libs-only-L libcrypto + OPENSSL_INCLUDE_DIR=$(pkg-config --cflags libcrypto | cut -dI -f2-) + OPENSSL_LIB_DIR=$(pkg-config --libs-only-L libcrypto | cut -dL -f2-) + echo "OPENSSL_INCLUDE_DIR=$OPENSSL_INCLUDE_DIR" >> $GITHUB_ENV + echo "OPENSSL_LIB_DIR=$OPENSSL_LIB_DIR" >> $GITHUB_ENV + - uses: actions/checkout@v4.1.1 - uses: dtolnay/rust-toolchain@stable @@ -171,6 +180,16 @@ jobs: run: | sudo cargo test -- --test-threads=1 --ignored + strategy: + fail-fast: false + matrix: + build: [macos-x64, macos-arm64] + include: + - build: macos-x64 + runner: macos-13 + - build: macos-arm64 + runner: macos-14 + clippy: name: Clippy runs-on: ubuntu-22.04