Skip to content

Commit d0e4ead

Browse files
committed
ci: test with clang compiler
1 parent b4ba3a8 commit d0e4ead

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/rust-ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,16 @@ jobs:
3636
test:
3737
name: Test
3838
strategy:
39+
fail-fast: false
3940
matrix:
40-
os: [ ubuntu-24.04, windows-2022, macOS-latest ]
41+
os: [ ubuntu-latest, macOS-latest ]
42+
cxx: [ g++, clang++ ]
43+
include:
44+
- os: windows-2022
45+
target: x86_64-pc-windows-msvc
4146
runs-on: ${{ matrix.os }}
47+
env:
48+
CXX: ${{ matrix.cxx }}
4249
steps:
4350
- uses: actions/checkout@v4
4451
with:
@@ -52,6 +59,9 @@ jobs:
5259
# figure out native target triple while we're at it
5360
- name: install rust-toolchain
5461
run: echo "TARGET=$(rustc --print host-tuple)" >> "$GITHUB_ENV"
62+
- name: overwrite target
63+
if: ${{ matrix.target != '' }}
64+
run: echo "TARGET=${{ matrix.target }}" >> "$GITHUB_ENV"
5565
# Fetch dependencies in a separate step to clearly show how long each part
5666
# of the testing takes
5767
- name: cargo fetch --locked

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ in with pkgs; stdenv.mkDerivation rec {
1111
# Allow cargo to download crates (even inside `nix-shell --pure`).
1212
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
1313

14-
nativeBuildInputs = [ rustup ];
14+
nativeBuildInputs = [ rustup clang ];
1515
}

0 commit comments

Comments
 (0)