File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ commands:
4242 command : sudo apt install clang
4343orbs :
444445+ 4546executors :
4647 docker-publisher :
4748 environment :
@@ -159,6 +160,31 @@ jobs:
159160 name : Build Trin workspace
160161 command : cargo build --workspace
161162 - save-sccache-cache
163+ check-windows :
164+ description : |
165+ Check the crate on Windows (Check will tell us if we can build on Windows without the need to codegen (which is the time consuming part)).
166+ executor :
167+ name : win/default
168+ size : xlarge
169+ environment :
170+ RUSTFLAGS : ' -D warnings'
171+ RUST_LOG : ' debug'
172+ steps :
173+ - checkout
174+ - run :
175+ name : Install rustup and clang
176+ # We are installing them at the same time because it is faster
177+ # todo: Remove --ignore-checksums flag
178+ command : choco install rustup.install llvm -y --ignore-checksums
179+ - run :
180+ name : Add target
181+ command : rustup target add x86_64-pc-windows-msvc
182+ - run :
183+ name : Install target toolchain
184+ command : rustup toolchain install stable-x86_64-pc-windows-msvc
185+ - run :
186+ name : Check Trin workspace
187+ command : cargo check --workspace
162188 test :
163189 description : |
164190 Run tests.
@@ -259,4 +285,5 @@ workflows:
259285 - lint
260286 - build
261287 - test
288+ - check-windows
262289 - utp-test
You can’t perform that action at this time.
0 commit comments