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 10, 2024
1 parent 9c5d8fe commit 2849630
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,24 @@ 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:
# On macos 14, yara does not find the openssl include dir, so retrieve
# them and set them properly.
- 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 "YARA_OPENSSL_INCLUDE_DIR=$OPENSSL_INCLUDE_DIR" >> $GITHUB_ENV
echo "YARA_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 +182,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 2849630

Please sign in to comment.