Skip to content

Commit 60bb14c

Browse files
authoredOct 22, 2024
Merge pull request #8382 from tautschnig/macos-14
CI: add macos-14 (macOS on M1) job
2 parents 83922b2 + 075319d commit 60bb14c

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
 

‎.github/workflows/pull-request-checks.yaml

+44
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,50 @@ jobs:
683683
- name: Run CTest
684684
run: cd build; ctest -V -L CORE . -j3
685685

686+
# This job takes approximately 36 to 85 minutes
687+
check-macos-14-cmake-clang:
688+
runs-on: macos-14
689+
steps:
690+
- uses: actions/checkout@v4
691+
with:
692+
submodules: recursive
693+
- name: Fetch dependencies
694+
run: brew install cmake ninja maven flex bison ccache z3
695+
- name: Confirm z3 solver is available and log the version installed
696+
run: z3 --version
697+
- name: Download cvc5 binary and make sure it can be deployed
698+
run: |
699+
wget https://github.com/cvc5/cvc5/releases/download/cvc5-${{env.cvc5-version}}/cvc5-macOS-static.zip
700+
unzip -j -d /usr/local/bin cvc5-macOS-static.zip cvc5-macOS-static/bin/cvc5
701+
rm cvc5-macOS-static.zip
702+
cvc5 --version
703+
- name: Prepare ccache
704+
uses: actions/cache@v4
705+
with:
706+
save-always: true
707+
path: .ccache
708+
key: ${{ runner.os }}-Release-${{ github.ref }}-${{ github.sha }}-PR
709+
restore-keys: |
710+
${{ runner.os }}-Release-${{ github.ref }}
711+
${{ runner.os }}-Release
712+
- name: ccache environment
713+
run: |
714+
echo "CCACHE_BASEDIR=$PWD" >> $GITHUB_ENV
715+
echo "CCACHE_DIR=$PWD/.ccache" >> $GITHUB_ENV
716+
- name: Zero ccache stats and limit in size
717+
run: ccache -z --max-size=500M
718+
- name: Configure using CMake
719+
run: |
720+
mkdir build
721+
cd build
722+
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -Dsat_impl=cadical
723+
- name: Build with Ninja
724+
run: cd build; ninja -j3
725+
- name: Print ccache stats
726+
run: ccache -s
727+
- name: Run CTest
728+
run: cd build; ctest -V -L CORE . -j3
729+
686730
# This job takes approximately 49 to 70 minutes
687731
check-vs-2019-cmake-build-and-test:
688732
runs-on: windows-2019

0 commit comments

Comments
 (0)