Skip to content

Commit

Permalink
ci: add arm64 macos runner
Browse files Browse the repository at this point in the history
  • Loading branch information
vthib committed Dec 9, 2024
1 parent 0b42fcf commit e3381f5
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,23 @@ 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: |
brew reinstall openssl@3
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
Expand Down Expand Up @@ -171,6 +181,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
Expand Down

0 comments on commit e3381f5

Please sign in to comment.