From bdb5577036f852fc697b79a6b98cfdfa1c2f6c5c Mon Sep 17 00:00:00 2001 From: Alan Liddell Date: Wed, 10 Jul 2024 16:24:22 -0400 Subject: [PATCH] Try to build both x64 and arm64 on macos-14 --- .github/workflows/build.yml | 110 ++++++++++++++++++------------------ 1 file changed, 55 insertions(+), 55 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d7e93b55..0aa79cae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,61 +9,7 @@ on: - "main" jobs: - mac-build: - strategy: - matrix: - build_type: - - "Debug" - - "Release" - platform: - - "macos-13" - - "macos-14" - include: - - platform: "macos-13" - vcpkg_triplet: "x64-osx" - - platform: "macos-14" - vcpkg_triplet: "arm64-osx" - - runs-on: ${{matrix.platform}} - - permissions: - actions: write - - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.10.0 - with: - access_token: ${{ github.token }} - - - uses: actions/checkout@v3 - with: - submodules: true - - - name: Install vcpkg - run: | - git clone https://github.com/microsoft/vcpkg.git - cd vcpkg && ./bootstrap-vcpkg.sh - echo "VCPKG_ROOT=${{github.workspace}}/vcpkg" >> $GITHUB_ENV - echo "${{github.workspace}}/vcpkg" >> $GITHUB_PATH - ./vcpkg integrate install - shell: bash - - - name: CMake - run: | - cmake --preset=default -DVCPKG_TARGET_TRIPLET=${{matrix.vcpkg_triplet}} - cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} - - - name: Build - run: | - cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} - cpack --config ${{github.workspace}}/build/CPackConfig.cmake -C ${{matrix.build_type}} -G ZIP - - - uses: actions/upload-artifact@v3 - with: - name: ${{matrix.platform}} ${{matrix.build_type}} binaries - path: ${{github.workspace}}/*.zip - -# build: +# windows-and-linux-build: # strategy: # matrix: # build_type: @@ -116,3 +62,57 @@ jobs: # with: # name: ${{matrix.platform}} ${{matrix.build_type}} binaries # path: ${{github.workspace}}/*.zip + + mac-build: + strategy: + matrix: + build_type: + - "Debug" + - "Release" + vcpkg_triplet: + - "x64-osx" + - "arm64-osx" +# include: +# - platform: "macos-13" +# vcpkg_triplet: "x64-osx" +# - platform: "macos-14" +# vcpkg_triplet: "arm64-osx" + + runs-on: "macos-14" + + permissions: + actions: write + + steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.10.0 + with: + access_token: ${{ github.token }} + + - uses: actions/checkout@v3 + with: + submodules: true + + - name: Install vcpkg + run: | + git clone https://github.com/microsoft/vcpkg.git + cd vcpkg && ./bootstrap-vcpkg.sh + echo "VCPKG_ROOT=${{github.workspace}}/vcpkg" >> $GITHUB_ENV + echo "${{github.workspace}}/vcpkg" >> $GITHUB_PATH + ./vcpkg integrate install + shell: bash + + - name: CMake + run: | + cmake --preset=default -DVCPKG_TARGET_TRIPLET=${{matrix.vcpkg_triplet}} + cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} + + - name: Build + run: | + cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} + cpack --config ${{github.workspace}}/build/CPackConfig.cmake -C ${{matrix.build_type}} -G ZIP + + - uses: actions/upload-artifact@v3 + with: + name: macos-latest ${{matrix.vcpkg_triplet}} ${{matrix.build_type}} binaries + path: ${{github.workspace}}/*.zip \ No newline at end of file