From 88e50129d4ef4f8c52ffeb2e3e1e3d4d34f2cebb Mon Sep 17 00:00:00 2001 From: narugit Date: Tue, 21 Apr 2026 22:00:04 +0900 Subject: [PATCH 1/2] ci: add build workflow to verify compilation on PRs Run make and make staticlib on macos-15 and macos-26 runners so PRs fail fast when code does not compile. --- .github/workflows/build.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..35da14e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,31 @@ +name: Build +on: [pull_request] +jobs: + build: + name: runner / build (${{ matrix.os }}) + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [macos-15, macos-26] + steps: + - name: Check out code + uses: actions/checkout@v6 + + - name: Show toolchain info + run: | + uname -m + sw_vers + g++ --version + + - name: Build binary + run: make + + - name: Build static library + run: make staticlib + + - name: Verify artifacts + run: | + file smctemp + file libsmctemp.a + ./smctemp -h || true From 6042a2eca133293959f9dd061de032d664e00c30 Mon Sep 17 00:00:00 2001 From: narugit Date: Tue, 21 Apr 2026 22:07:19 +0900 Subject: [PATCH 2/2] ci: show CPU brand in build environment step Rename the toolchain info step to cover OS, CPU brand, and compiler so Apple Silicon generation (M1/M2/M3/...) is visible in logs. --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 35da14e..4bbe64e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,10 +12,11 @@ jobs: - name: Check out code uses: actions/checkout@v6 - - name: Show toolchain info + - name: Show build environment run: | - uname -m sw_vers + uname -m + sysctl -n machdep.cpu.brand_string g++ --version - name: Build binary