Skip to content

Commit

Permalink
[CI] add windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarzik committed Feb 22, 2024
1 parent 770e621 commit 8b282eb
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/TestingCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: [push]

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1

jobs:
linux-ubuntu:
Expand Down Expand Up @@ -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

0 comments on commit 8b282eb

Please sign in to comment.