Skip to content

Commit

Permalink
windows ci
Browse files Browse the repository at this point in the history
  • Loading branch information
neonphog committed May 7, 2024
1 parent b255283 commit 6aa304f
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,26 @@ jobs:
- name: Rust Cache
uses: Swatinem/rust-cache@v2

- name: Cargo Build
run: cargo build --all-targets
- name: Install vcpkg Packages
if: matrix.os == 'windows-latest'
uses: johnwason/vcpkg-action@v6
id: vcpkg
with:
pkgs: libsodium
triplet: x64-windows-release
token: ${{ github.token }}
github-binarycache: true

- name: Cargo Test Windows
if: matrix.os == 'windows-latest'
env:
RUST_BACKTRACE: 1
run: |-
$env:SODIUM_LIB_DIR="$(pwd)\vcpkg\packages\libsodium_x64-windows-release\lib"
cargo build --all-targets && cargo test -- --nocapture
- name: Cargo Test
if: matrix.os != 'windows-latest'
env:
RUST_BACKTRACE: 1
run: cargo test -- --nocapture
run: cargo build --all-targets && cargo test -- --nocapture

0 comments on commit 6aa304f

Please sign in to comment.