Skip to content

Commit 76514f4

Browse files
committed
Add windows build to github actions.
1 parent ec9c050 commit 76514f4

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,25 @@ jobs:
1616
profile: minimal
1717
- run: cargo build --release -p lognplot
1818
- run: cargo test -p lognplot
19+
20+
windows_build:
21+
name: Build on windows
22+
runs-on: windows-latest
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Rust toolchain installation
26+
uses: actions-rs/toolchain@v1
27+
with:
28+
toolchain: stable
29+
profile: minimal
30+
- name: Install vcpkg dependencies
31+
env:
32+
vcpkgResponseFile: ${{github.workspace}}/.github/workflows/response_file.txt
33+
uses: lukka/run-vcpkg@v3
34+
with:
35+
vcpkgTriplet: x64-windows
36+
vcpkgGitCommitId: 6185aa76504a5025f36754324abf307cc776f3da
37+
vcpkgArguments: '@${{env.vcpkgResponseFile}}'
38+
appendedCacheKey: ${{hashFiles(env.vcpkgResponseFile)}}
39+
- run: cargo build --release -p lognplot
40+
- run: cargo test -p lognplot
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
gtk
2+
hdf5

0 commit comments

Comments
 (0)