From 581fce900e6e35051c9039ad01c343cd7cdacd07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Lindel=C3=B6w?= Date: Tue, 7 Apr 2026 01:05:07 +0200 Subject: [PATCH] Add macOS ARM64 build and test to CI --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc967a8..a2d55a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -282,6 +282,24 @@ jobs: build/tests_mingw_x86_win2k.exe build/tests_header_only_mingw_x86_win2k.exe + macos-arm64-build: + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + - name: Build + run: | + mkdir build && cd build + cmake -G "Ninja" ../ -DCMAKE_VERBOSE_MAKEFILE=ON -DTCS_ENABLE_TESTS=ON -DTCS_ENABLE_EXAMPLES=ON -DTCS_WARNINGS_AS_ERRORS=ON + cmake --build . + mv ./tests/tests ./tests_macos_arm64 + mv ./tests/tests_header_only ./tests_header_only_macos_arm64 + - uses: actions/upload-artifact@v4 + with: + name: macos-arm64-tests + path: | + build/tests_macos_arm64 + build/tests_header_only_macos_arm64 + # ---- TESTS ---- windows-tests: @@ -503,6 +521,23 @@ jobs: ' 2>&1 | tee -a $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY + macos-arm64-test: + runs-on: macos-latest + timeout-minutes: 30 + needs: [macos-arm64-build] + steps: + - uses: actions/download-artifact@v4 + with: + name: macos-arm64-tests + path: build/ + - name: Run tests + run: | + echo '```' >> $GITHUB_STEP_SUMMARY + chmod +x ./build/tests_macos_arm64 ./build/tests_header_only_macos_arm64 + ./build/tests_macos_arm64 2>&1 | tee -a $GITHUB_STEP_SUMMARY + ./build/tests_header_only_macos_arm64 2>&1 | tee -a $GITHUB_STEP_SUMMARY + echo '```' >> $GITHUB_STEP_SUMMARY + # ---- DEPLOY ---- sphinx-docs: