Skip to content

Commit a2f1fbb

Browse files
ci: check that the runner builds on windows
Note: the runner is still absolutely not functional, we just have this test to avoid adding more debt passively before making it functional.
1 parent 64905a5 commit a2f1fbb

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,21 @@ jobs:
9191
- name: Clean up
9292
run: sudo chown -R $USER:$USER . ~/.cargo
9393

94+
windows-build:
95+
runs-on: windows-latest
96+
steps:
97+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
98+
with:
99+
submodules: true
100+
- name: "Install rust-toolchain.toml"
101+
run: rustup toolchain install
102+
- name: Add Windows GNU target
103+
run: rustup target add x86_64-pc-windows-gnu
104+
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2
105+
- name: Check codspeed-runner builds on Windows
106+
# Instrument hooks fails to build with msvc target, so we use the gnu target for this check for now
107+
run: cargo check -p codspeed-runner --target x86_64-pc-windows-gnu
108+
94109
benchmarks:
95110
runs-on: ubuntu-latest
96111
steps:

0 commit comments

Comments
 (0)