Skip to content

Commit 265fa41

Browse files
authored
Merge pull request #35 from pq-code-package/clang21
Add clang 21 compiler tests to CI
2 parents d9dad03 + dc55563 commit 265fa41

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ jobs:
5252
- name: clang-20
5353
shell: ci_clang20
5454
darwin: True
55+
- name: clang-21
56+
shell: ci_clang21
57+
darwin: True
5558
# CPU flags are not correctly passed to the zig assembler
5659
# https://github.com/ziglang/zig/issues/23576
5760
# We therefore only test the C backend

.github/workflows/nix.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,15 @@ jobs:
8888
fail-fast: false
8989
matrix:
9090
target:
91+
# nixpkgs requires 2.18 since August 2025, see
92+
# https://github.com/NixOS/nixpkgs/pull/428076
93+
# TODO: Re-enable tests on Ubuntu 22 once nix has been updated to >= 2.18
94+
# - runner: ubuntu-22.04
95+
# container:
96+
# install: 'apt'
9197
- runner: ubuntu-latest
92-
container: nixos/nix:2.6.1
98+
container: nixos/nix:2.18.0
9399
install: 'native'
94-
- runner: ubuntu-22.04
95-
container:
96-
install: 'apt'
97100
- runner: ubuntu-24.04
98101
container:
99102
install: 'apt'

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
gcc48 = pkgs-2405.gcc48;
5353
gcc49 = pkgs-2405.gcc49;
5454
gcc7 = pkgs-2405.gcc7;
55+
clang_21 = pkgs-unstable.clang_21;
5556
})
5657
];
5758
};
@@ -115,6 +116,7 @@
115116
devShells.ci_clang18 = util.mkShellWithCC' pkgs.clang_18;
116117
devShells.ci_clang19 = util.mkShellWithCC' pkgs.clang_19;
117118
devShells.ci_clang20 = util.mkShellWithCC' pkgs.clang_20;
119+
devShells.ci_clang21 = util.mkShellWithCC' pkgs.clang_21;
118120

119121
devShells.ci_zig0_12 = util.mkShellWithCC' (zigWrapCC pkgs.zig_0_12);
120122
devShells.ci_zig0_13 = util.mkShellWithCC' (zigWrapCC pkgs.zig_0_13);

0 commit comments

Comments
 (0)