From 3568281808f48bee7a4a41a4827a28eb799702d0 Mon Sep 17 00:00:00 2001 From: shinra-electric <50119606+shinra-electric@users.noreply.github.com> Date: Sat, 18 Jul 2026 10:15:41 +0900 Subject: [PATCH 1/3] Bump actions versions --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c8db7d4..4f44df8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,7 +42,7 @@ jobs: c_compiler: cl steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Set reusable strings # Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file. @@ -88,7 +88,7 @@ jobs: run: ctest --build-config ${{ matrix.build_type }} - name: Upload Build Artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: zarchive-build-${{matrix.os}}-${{matrix.build_type}}-${{matrix.c_compiler}} path: ${{ steps.strings.outputs.build-output-dir }} From 59fd58ac446569f1b4d6429095b4063ac97f8b06 Mon Sep 17 00:00:00 2001 From: shinra-electric <50119606+shinra-electric@users.noreply.github.com> Date: Sat, 18 Jul 2026 10:18:15 +0900 Subject: [PATCH 2/3] Add macOS to the matrix --- .github/workflows/build.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4f44df8..44da22c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: # # To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list. matrix: - os: [ubuntu-latest, windows-latest] + os: [ubuntu-latest, windows-latest, macos-latest] build_type: [Release] c_compiler: [gcc, clang, cl] include: @@ -33,6 +33,9 @@ jobs: - os: ubuntu-latest c_compiler: clang cpp_compiler: clang++ + - os: macos-latest + c_compiler: clang + cpp_compiler: clang++ exclude: - os: windows-latest c_compiler: gcc @@ -40,6 +43,10 @@ jobs: c_compiler: clang - os: ubuntu-latest c_compiler: cl + - os: macos-latest + c_compiler: cl + - os: macos-latest + c_compiler: gcc steps: - uses: actions/checkout@v7 @@ -52,7 +59,7 @@ jobs: echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" - name: Configure CMake (Linux) - if: matrix.os != 'windows-latest' + if: matrix.os == 'ubuntu-latest' # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type run: > @@ -63,6 +70,16 @@ jobs: -DCMAKE_TOOLCHAIN_FILE=/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake -DBUILD_STATIC_TOOL=ON -S ${{ github.workspace }} + + - name: Configure CMake (macOS) + if: matrix.os == 'macos-latest' + run: | + cmake -B ${{ steps.strings.outputs.build-output-dir }} \ + -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} \ + -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \ + -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ + -DBUILD_STATIC_TOOL=OFF \ + -S ${{ github.workspace }} - name: Configure CMake (Windows) if: matrix.os == 'windows-latest' From 99b4fe04674bda01b399de2e2fca496201d92bd0 Mon Sep 17 00:00:00 2001 From: shinra-electric <50119606+shinra-electric@users.noreply.github.com> Date: Sat, 18 Jul 2026 10:22:30 +0900 Subject: [PATCH 3/3] Fix yaml tabbing --- .github/workflows/build.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 44da22c..0a72b5b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -72,14 +72,14 @@ jobs: -S ${{ github.workspace }} - name: Configure CMake (macOS) - if: matrix.os == 'macos-latest' - run: | - cmake -B ${{ steps.strings.outputs.build-output-dir }} \ - -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} \ - -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \ - -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ - -DBUILD_STATIC_TOOL=OFF \ - -S ${{ github.workspace }} + if: matrix.os == 'macos-latest' + run: | + cmake -B ${{ steps.strings.outputs.build-output-dir }} \ + -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} \ + -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \ + -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ + -DBUILD_STATIC_TOOL=OFF \ + -S ${{ github.workspace }} - name: Configure CMake (Windows) if: matrix.os == 'windows-latest'