File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-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,33 @@ 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
176+ # todo: Remove --ignore-checksums flag
177+ command : choco install rustup.install --ignore-checksums
178+ - run :
179+ name : Install clang
180+ command : choco install llvm
181+ - run :
182+ name : Add target
183+ command : rustup target add x86_64-pc-windows-msvc
184+ - run :
185+ name : Install target toolchain
186+ command : rustup toolchain install stable-x86_64-pc-windows-msvc
187+ - run :
188+ name : Check Trin workspace
189+ command : cargo check --workspace
162190 test :
163191 description : |
164192 Run tests.
@@ -259,4 +287,5 @@ workflows:
259287 - lint
260288 - build
261289 - test
290+ - check-windows
262291 - utp-test
You can’t perform that action at this time.
0 commit comments