Skip to content

Commit bd9c8d2

Browse files
committed
fix(ci): test codspeed with clang and gcc
1 parent d71bcc0 commit bd9c8d2

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,16 @@ jobs:
3636
env:
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3838

39-
- run: cargo test -p codspeed
39+
- name: Install dependencies
4040
if: runner.os == 'Linux'
41+
run: sudo apt-get update && sudo apt-get install -y clang gcc
42+
43+
- name: Test with GCC
44+
if: runner.os == 'Linux'
45+
run: |
46+
CC=gcc cargo test -p codspeed
47+
cargo clean # Ensure we don't use the cached artifactss
48+
CC=clang cargo test -p codspeed
4149
4250
# We don't support Windows/MacOS for now, due to libclang not found on some runners:
4351
- run: LIBCLANG_PATH= cargo test -p codspeed

0 commit comments

Comments
 (0)