From 22564267d6d6ae56715537705561c8a422102f4e Mon Sep 17 00:00:00 2001 From: Kolby ML <31669092+KolbyML@users.noreply.github.com> Date: Sun, 17 Sep 2023 18:20:48 -0600 Subject: [PATCH] Add a check CI for windows --- .circleci/config.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index d2cd0b775..4b281728e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -42,6 +42,7 @@ commands: command: sudo apt install clang orbs: rust: circleci/rust@1.6.0 + win: circleci/windows@2.2.0 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