commit e766c99f903412bdf1ded051948a3b064117afe4
parent fee9e900b1e14535ca11891315c5d1f7f6bc148f
Author: finwo <finwo@pm.me>
Date: Tue, 24 Oct 2023 01:02:54 +0200
More explicit use of CC?
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/cc.yml b/.github/workflows/cc.yml
@@ -35,7 +35,7 @@ jobs:
shell: bash
run: |
make CC=${{ matrix.cc }} BIN=${{ matrix.bin }}
- make check
+ make check CC=${{ matrix.cc }} BIN=${{ matrix.bin }}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
@@ -99,13 +99,14 @@ jobs:
run: |
make CC=${{ matrix.cc }} BIN=${{ matrix.bin }}
- make check
+ make check CC=${{ matrix.cc }} BIN=${{ matrix.bin }}
- if: ${{ matrix.arch == 'none' }}
name: Build
shell: bash
run: |
make CC=${{ matrix.cc }} BIN=${{ matrix.bin }}
+ make check CC=${{ matrix.cc }} BIN=${{ matrix.bin }}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
diff --git a/Makefile b/Makefile
@@ -1,6 +1,7 @@
SRC=$(wildcard src/*.c)
SRC+=test.c
BIN?=http-parser-test
+CC?=gcc
override CFLAGS?=-Wall -s -O2