Skip to content

Commit 2256426

Browse files
committed
Add a check CI for windows
1 parent 505909f commit 2256426

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.circleci/config.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ commands:
4242
command: sudo apt install clang
4343
orbs:
4444
rust: circleci/[email protected]
45+
win: circleci/[email protected]
4546
executors:
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

0 commit comments

Comments
 (0)