From 8b282ebf6dea55457713aee1a70e2e59d8db0991 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Thu, 22 Feb 2024 11:52:03 -0500 Subject: [PATCH] [CI] add windows --- .github/workflows/TestingCI.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/TestingCI.yml b/.github/workflows/TestingCI.yml index 280a7da..e405334 100644 --- a/.github/workflows/TestingCI.yml +++ b/.github/workflows/TestingCI.yml @@ -4,6 +4,7 @@ on: [push] env: CARGO_TERM_COLOR: always + RUST_BACKTRACE: 1 jobs: linux-ubuntu: @@ -40,3 +41,33 @@ jobs: - run: cargo build --release --verbose - run: cargo run --release --verbose + windows-vcpkg: + + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + - uses: sfackler/actions/rustup@master + - run: echo "version=$(rustc --version)" >> $GITHUB_OUTPUT + id: rust-version + - run: echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append + - run: vcpkg install openssl:x64-windows-static-md + - uses: actions/cache@v4 + with: + path: ~/.cargo/registry/index + key: index-${{ runner.os }}-${{ github.run_number }} + restore-keys: | + index-${{ runner.os }}- + - run: cargo generate-lockfile + - uses: actions/cache@v4 + with: + path: ~/.cargo/registry/cache + key: registry-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }} + - run: cargo fetch + - uses: actions/cache@v4 + with: + path: target + key: target-${{ github.job }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }} + # - run: cargo run -p systest + - run: cargo build --release --verbose + - run: cargo run --release --verbose +