Skip to content

Commit 74f8592

Browse files
committed
CI: Add C90 tests in CI
Resolves #9 Signed-off-by: Matthias J. Kannwischer <matthias@kannwischer.eu>
1 parent 4855e1c commit 74f8592

2 files changed

Lines changed: 30 additions & 3 deletions

File tree

.github/workflows/base.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,29 @@ jobs:
4040
- name: make quickcheck
4141
run: |
4242
make quickcheck
43+
quickcheck-c90:
44+
strategy:
45+
fail-fast: false
46+
matrix:
47+
external:
48+
- ${{ github.repository_owner != 'pq-code-package' }}
49+
target:
50+
- runner: pqcp-arm64
51+
name: 'aarch64'
52+
- runner: ubuntu-latest
53+
name: 'x86_64'
54+
exclude:
55+
- {external: true,
56+
target: {
57+
runner: pqcp-arm64,
58+
name: 'aarch64'
59+
}}
60+
name: Quickcheck C90 (${{ matrix.target.name }})
61+
runs-on: ${{ matrix.target.runner }}
62+
steps:
63+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
64+
with:
65+
submodules: true
66+
- name: make quickcheck
67+
run: |
68+
CFLAGS=-std=c90 make quickcheck

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ OBJS = $(CSRC:.c=.o)
99
XTEST ?= xfips205
1010
XTESTC ?= test/xfips205.c
1111

12-
CC = gcc
13-
CFLAGS := -Wall \
12+
CC. ?= gcc
13+
CFLAGS. := -Wall \
1414
-Wextra \
1515
-Werror=unused-result \
1616
-Wpedantic \
@@ -24,7 +24,8 @@ CFLAGS := -Wall \
2424
-O3 \
2525
-fomit-frame-pointer \
2626
-std=c99 \
27-
-pedantic
27+
-pedantic \
28+
$(CFLAGS)
2829

2930
LDLIBS +=
3031

0 commit comments

Comments
 (0)