-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,7 @@ commands: | |
command: sudo apt install clang | ||
orbs: | ||
rust: circleci/[email protected] | ||
win: circleci/[email protected] | ||
executors: | ||
docker-publisher: | ||
environment: | ||
|
@@ -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. | ||
|
@@ -259,4 +285,5 @@ workflows: | |
- lint | ||
- build | ||
- test | ||
- check-windows | ||
- utp-test |