Skip to content

Commit 10e96bc

Browse files
authored
Merge pull request #127 from pks-gitlab/pks-ci-improvements
CI improvements
2 parents 11830d5 + adbe14f commit 10e96bc

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,45 @@ jobs:
1313
platform:
1414
- os: ubuntu-latest
1515
generator: Unix Makefiles
16+
env:
17+
CFLAGS: "-Werror -Wall -Wextra"
1618
- os: ubuntu-latest
1719
generator: Unix Makefiles
1820
env:
1921
CC: "clang"
20-
CFLAGS: "-fsanitize=leak"
22+
CFLAGS: "-Werror -Wall -Wextra -fsanitize=leak"
23+
- os: ubuntu-latest
24+
generator: Unix Makefiles
25+
image: i386/debian:latest
26+
env:
27+
CFLAGS: "-Werror -Wall -Wextra"
2128
- os: macos-latest
2229
generator: Unix Makefiles
30+
env:
31+
CFLAGS: "-Werror -Wall -Wextra"
2332
- os: windows-latest
2433
generator: Visual Studio 17 2022
2534
- os: windows-latest
2635
generator: MSYS Makefiles
36+
env:
37+
CFLAGS: "-Werror -Wall -Wextra"
2738
- os: windows-latest
2839
generator: MinGW Makefiles
40+
env:
41+
CFLAGS: "-Werror -Wall -Wextra"
2942
fail-fast: false
3043

3144
runs-on: ${{ matrix.platform.os }}
45+
container: ${{matrix.platform.image}}
3246

3347
env:
3448
CC: ${{matrix.platform.env.CC}}
3549
CFLAGS: ${{matrix.platform.env.CFLAGS}}
3650

3751
steps:
52+
- name: Prepare 32 bit container image
53+
if: matrix.platform.image == 'i386/debian:latest'
54+
run: apt -q update && apt -q -y install cmake gcc libc6-amd64 lib64stdc++6 make python3
3855
- name: Check out
3956
uses: actions/checkout@v4
4057
- name: Build

test/selftest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ static void assert_output(const char *suite, const char *expected_output_file, i
271271
char *expected_output, *output;
272272
const char *args[16];
273273
va_list ap;
274-
int i;
274+
size_t i;
275275

276276
va_start(ap, expected_error_code);
277277
for (i = 0; ; i++) {

0 commit comments

Comments
 (0)