Skip to content

Commit

Permalink
CI: update macos runners to test against macOS 13, 14 and botan3, ins…
Browse files Browse the repository at this point in the history
…talled via homebrew.
  • Loading branch information
ni4 committed Apr 9, 2024
1 parent 86c0cfd commit 0358e0d
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2023 [Ribose Inc](https://www.ribose.com).
# Copyright (c) 2023-2024 [Ribose Inc](https://www.ribose.com).
# All rights reserved.
# This file is a part of rnp
#
Expand Down Expand Up @@ -57,7 +57,8 @@ concurrency:
cancel-in-progress: true

env:
BOTAN_VERSION: 2.19.3
BOTAN_VERSION: 2.19.4
CORES: 3

jobs:
tests:
Expand All @@ -67,14 +68,14 @@ jobs:
fail-fast: false
matrix:
# On MacOS gcc is alias of clang these days
os: [ macos-11, macos-12 ]
os: [ macos-12, macos-13, macos-14 ]
backend: [ 'botan' ]
shared_libs: [ 'on' ]
include:
- { os: 'macos-11', backend: '[email protected]', shared_libs: 'on' }
- { os: 'macos-12', backend: 'openssl@3', shared_libs: 'on' }
- { os: 'macos-12', backend: 'botan', shared_libs: 'off' }
- { os: 'macos-12', backend: 'botan3', shared_libs: 'on' }
- { os: 'macos-14', backend: 'openssl@3', shared_libs: 'on' }
- { os: 'macos-14', backend: 'botan', shared_libs: 'off' }
- { os: 'macos-14', backend: 'botan3', shared_libs: 'on' }

if: "!contains(github.event.head_commit.message, 'skip ci')"
timeout-minutes: 250
Expand All @@ -99,14 +100,6 @@ jobs:
echo "OPENSSL_ROOT_DIR=$(brew --prefix openssl@3)" >> $GITHUB_ENV
echo "CRYPTO_BACKEND=openssl" >> $GITHUB_ENV
# Brew installs Botan3 now and it is not supported yet
#
# - name: Configure botan backend
# if: ${{ matrix.backend == 'botan' }}
# run: |
# echo "brew \"botan\"" >> Brewfile
# echo "CRYPTO_BACKEND=botan" >> $GITHUB_ENV

- name: Install dependencies
run: brew bundle

Expand Down Expand Up @@ -147,6 +140,7 @@ jobs:
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="$PWD/rnp-install" \
-DDOWNLOAD_GTEST=OFF \
-DCMAKE_CXX_FLAGS="-DS2K_MINIMUM_TUNING_RATIO=4"\
-DCRYPTO_BACKEND=${{ env.CRYPTO_BACKEND }} .
- name: Build
Expand Down

0 comments on commit 0358e0d

Please sign in to comment.