Skip to content

Commit

Permalink
Add a check CI for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
KolbyML committed Sep 19, 2023
1 parent 951d096 commit ecdaacb
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ commands:
command: sudo apt install clang
orbs:
rust: circleci/[email protected]
win: circleci/[email protected]
executors:
docker-publisher:
environment:
Expand Down Expand Up @@ -159,6 +160,31 @@ jobs:
name: Build Trin workspace
command: cargo build --workspace
- save-sccache-cache
check-windows:
description: |
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)).
executor:
name: win/default
size: xlarge
environment:
RUSTFLAGS: '-D warnings'
RUST_LOG: 'debug'
steps:
- checkout
- run:
name: Install rustup and clang
# We are installing them at the same time because it is faster
# todo: Remove --ignore-checksums flag
command: choco install rustup.install llvm -y --ignore-checksums
- run:
name: Add target
command: rustup target add x86_64-pc-windows-msvc
- run:
name: Install target toolchain
command: rustup toolchain install stable-x86_64-pc-windows-msvc
- run:
name: Check Trin workspace
command: cargo check --workspace
test:
description: |
Run tests.
Expand Down Expand Up @@ -259,4 +285,5 @@ workflows:
- lint
- build
- test
- check-windows
- utp-test

0 comments on commit ecdaacb

Please sign in to comment.