From 4bf52257d07ed676033cfc9e1a5f90d3fa4fc6ed Mon Sep 17 00:00:00 2001 From: flagarde Date: Thu, 18 Jul 2024 17:04:14 +0200 Subject: [PATCH] fix --- .github/workflows/Macos.yml | 58 ++++++++++++++++++++++++++++++++++--- 1 file changed, 54 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Macos.yml b/.github/workflows/Macos.yml index 81f6145..e09270a 100644 --- a/.github/workflows/Macos.yml +++ b/.github/workflows/Macos.yml @@ -12,12 +12,12 @@ concurrency: cancel-in-progress: true jobs: - macos-12: - runs-on: macos-12 + xcode: + runs-on: macos-14 strategy: fail-fast: false matrix: - xcode: ['13.1', 13.2.1, 13.3.1, 13.4.1] + xcode: [14.3.1, 15.0.1, 15.1, 15.2, 15.3, 15.4, 16.0] env: DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer @@ -60,7 +60,7 @@ jobs: build_config: Debug gcc: - runs-on: macos-12 + runs-on: macos-14 strategy: fail-fast: false matrix: @@ -108,3 +108,53 @@ jobs: id: test with: build_config: Debug + + clang: + runs-on: macos-14 + strategy: + fail-fast: false + matrix: + version: [12, 13, 14, 15, 16, 17] + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: 📂 Load .env file + if: hashFiles('.github/workflows/.env') != '' + uses: xom9ikk/dotenv@v2 + with: + path: .github/workflows + + - name: ⬇️ Setup CMake + uses: lukka/get-cmake@latest + with: + cmakeVersion: ^3 + ninjaVersion: ^1 + + - name: ⬇️ Setup Clang + run: brew install llvm@${{matrix.version}} + + - name: ⚙️ run-cmake (configure) + env: + CC: clang-${{matrix.version}} + CXX: clang++-${{matrix.version}} + uses: cmake-tools/run-cmake@v0-alpha + id: 'configure' + with: + mode: configure + generator: 'Ninja' + install_prefix: '../install' + binary_dir: '../build' + + - name: 🛠️ run-cmake (build) + uses: cmake-tools/run-cmake@v0-alpha + id: build + with: + mode: build + + - name: 🧪 run-ctest + uses: cmake-tools/run-ctest@v0-alpha + id: test + with: + build_config: Debug \ No newline at end of file