File tree Expand file tree Collapse file tree 1 file changed +24
-12
lines changed Expand file tree Collapse file tree 1 file changed +24
-12
lines changed Original file line number Diff line number Diff line change @@ -24,29 +24,41 @@ jobs:
2424 test-codspeed :
2525 strategy :
2626 matrix :
27- os : [ubuntu-latest, windows-latest, macos-latest]
27+ include :
28+ - os : ubuntu-latest
29+ name : clang
30+ - os : ubuntu-latest
31+ name : gcc
32+
33+ # We shouldn't build bindings on MacOS and Windows
34+ - os : macos-latest
35+ - os : windows-latest
2836 runs-on : ${{ matrix.os }}
2937 steps :
3038 - uses : actions/checkout@v4
3139 with :
3240 submodules : true
3341 - uses : moonrepo/setup-rust@v1
34- with :
35- cache-target : release
3642 env :
3743 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3844
39- - run : cargo test -p codspeed
45+ - uses : egor-tensin/setup-clang@v1
46+ if : matrix.name == 'clang'
47+ with :
48+ version : latest
49+
50+ - uses : egor-tensin/setup-gcc@v1
51+ if : matrix.name == 'gcc'
52+ with :
53+ version : latest
54+
55+ # On Linux, we test both gcc and clang builds:
56+ - run : cargo build -p codspeed --locked
4057 if : runner.os == 'Linux'
4158
42- # We don't support Windows/MacOS for now, due to libclang not found on some runners:
43- - run : LIBCLANG_PATH= cargo test -p codspeed
44- if : runner.os == 'macOS'
45- - run : |
46- $env:LIBCLANG_PATH=""
47- cargo test -p codspeed
48- if: runner.os == 'Windows'
49- shell: powershell
59+ # We don't support Windows/MacOS, but the build should work:
60+ - run : LIBCLANG_PATH= cargo build -p codspeed --locked
61+ if : runner.os == 'macOS' || runner.os == 'Windows'
5062
5163 msrv-check :
5264 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments