Skip to content

Commit 0dde19b

Browse files
committed
Add rustflag for linking missing lib on windows
1 parent 51446d8 commit 0dde19b

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/check.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020
push:
2121
branches:
2222
- main
23+
- try_to_fix_build_on_windows
2324
pull_request:
2425
paths:
2526
- "examples/**"
@@ -43,6 +44,26 @@ env:
4344
CARGO_TERM_COLOR: always
4445

4546
jobs:
47+
build-on-windows:
48+
name: build and test on Windows
49+
runs-on: windows-latest
50+
51+
steps:
52+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
53+
with:
54+
submodules: "recursive"
55+
56+
- name: Install Rust
57+
uses: actions-rust-lang/setup-rust-toolchain@150fca883cd4034361b621bd4e6a9d34e5143606 # v1.15.4
58+
with:
59+
toolchain: ${{ env.RUST_TOOLCHAIN }}
60+
61+
- name: Run tests
62+
env:
63+
RUSTFLAGS: -l advapi32
64+
run: |
65+
cargo test --no-fail-fast --all-features --all-targets
66+
4667
check:
4768
runs-on: ubuntu-latest
4869
steps:

0 commit comments

Comments
 (0)