Skip to content

Commit 44fa2dd

Browse files
yegorichclaude
authored andcommitted
ci: build with the makefile on macOS
macOS ships GNU make 3.81, which no other job uses. It still treats a '#' inside $(shell ...) as a comment, which broke the makefile build there (#376) while every CI job passed. Build the library and the tests with /usr/bin/make once, in the Release entry of the matrix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 3887bd0 commit 44fa2dd

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎.github/workflows/cmake-multi-platform.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,16 @@ jobs:
101101
working-directory: ${{ steps.strings.outputs.build-output-dir }}
102102
run: ctest --build-config ${{ matrix.build_type }}
103103

104+
- name: Build with the makefile
105+
# /usr/bin/make on macOS is GNU make 3.81, which no other job uses and
106+
# which parses the makefiles differently from make >= 4.3 (#376). The
107+
# makefile ignores the build type, so build it once.
108+
if: matrix.build_type == 'Release'
109+
run: |
110+
make --version | head -1
111+
make -j$(sysctl -n hw.ncpu)
112+
make -C test -j$(sysctl -n hw.ncpu)
113+
104114
build-alpine:
105115
# musl, not glibc: pthread_t is a pointer there, which this tree has got
106116
# wrong before (HardySimpson/zlog#280), and nothing else in the matrix

0 commit comments

Comments
 (0)