From cb453e08ea1d6f440c2709e65b5347f07d192c7d Mon Sep 17 00:00:00 2001 From: Mackenzie Clark Date: Tue, 11 Aug 2020 18:33:35 -0700 Subject: [PATCH] add build windows block to github actions ci --- .github/workflows/rust.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e57ebcef489a3..2b4eb8a0bc379 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -27,4 +27,31 @@ jobs: run: cargo check - name: Run tests run: cargo test --workspace - + build_windows: + name: build and unit test on windows + runs-on: windows-2019 + steps: + - uses: actions/checkout@v2 + - name: Install toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: cargo build + uses: actions-rs/cargo@v1 + with: + command: build + args: --target=x86_64-pc-windows-msvc --release --all-features + - name: cargo test + uses: actions-rs/cargo@v1 + with: + command: test + args: --target=x86_64-pc-windows-msvc --release --all-features