Skip to content

Commit 46b9070

Browse files
committed
Add a check CI for windows
1 parent f8befaf commit 46b9070

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.circleci/config.yml

Lines changed: 29 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,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

0 commit comments

Comments
 (0)