From b72bfec7352622fd9ea2e7d072832c27e19c3095 Mon Sep 17 00:00:00 2001 From: OwnedByWuigi <120682622+OwnedByWuigi@users.noreply.github.com> Date: Tue, 17 Jun 2025 21:20:44 +0100 Subject: [PATCH] Fix macOS issue --- .github/workflows/build.yml | 56 ++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index db8c32e..6cbd2dd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -94,42 +94,42 @@ jobs: with: name: Pound-win64-${{env.BUILD_TYPE}}-${{ needs.get-info.outputs.commit }}-${{needs.get-info.outputs.shorthash}} path: artifact/ - - macOS: - name: macOS + macOS: + name: macOS ${{ matrix.arch }} runs-on: macos-14 needs: get-info strategy: matrix: arch: [x86_64, arm64] steps: - - uses: actions/checkout@main - with: - submodules: recursive - fetch-depth: 0 + - uses: actions/checkout@main + with: + submodules: recursive + fetch-depth: 0 - - name: Install Dependencies - run: | - brew update - brew install cmake ninja ccache + - name: Install Dependencies + run: | + brew update + brew install cmake ninja ccache - - name: Configure CMake for ${{ matrix.arch }} - run: > - cmake -G Ninja -B "${{env.BUILD_DIR}}" - -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - -DCMAKE_OSX_ARCHITECTURES=${{ matrix.arch }} - -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 + - name: Configure CMake for ${{ matrix.arch }} + run: > + cmake -G Ninja -B "${{env.BUILD_DIR}}" + -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + -DCMAKE_OSX_ARCHITECTURES=${{ matrix.arch }} + -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 - - name: Build for ${{ matrix.arch }} - run: cmake --build "${{env.BUILD_DIR}}" --config ${{env.BUILD_TYPE}} --parallel $(sysctl -n hw.logicalcpu) + - name: Build for ${{ matrix.arch }} + run: cmake --build "${{env.BUILD_DIR}}" --config ${{env.BUILD_TYPE}} --parallel $(sysctl -n hw.logicalcpu) - - name: Prepare Artifact Folder - run: | - mkdir -p artifact - cp -r ${{env.BUILD_DIR}}/Pound artifact/Pound-${{ matrix.arch }}-macOS-${{env.BUILD_TYPE}} + - name: Prepare Artifact Folder + run: | + mkdir -p artifact + cp -r ${{env.BUILD_DIR}}/Pound artifact/Pound-${{ matrix.arch }}-macOS-${{env.BUILD_TYPE}} + + - name: Upload macOS Artifact + uses: actions/upload-artifact@main + with: + name: Pound-macOS-${{ matrix.arch }}-${{env.BUILD_TYPE}}-${{ needs.get-info.outputs.commit }}-${{needs.get-info.outputs.shorthash }} + path: artifact/ - - name: Upload macOS Artifact - uses: actions/upload-artifact@main - with: - name: Pound-macOS-${{ matrix.arch }}-${{env.BUILD_TYPE}}-${{ needs.get-info.outputs.commit }}-${{needs.get-info.outputs.shorthash }} - path: artifact/