Skip to content

Commit

Permalink
Add windows build to github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
windelbouwman committed Jul 1, 2020
1 parent ec9c050 commit 76514f4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,25 @@ jobs:
profile: minimal
- run: cargo build --release -p lognplot
- run: cargo test -p lognplot

windows_build:
name: Build on windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Rust toolchain installation
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
- name: Install vcpkg dependencies
env:
vcpkgResponseFile: ${{github.workspace}}/.github/workflows/response_file.txt
uses: lukka/run-vcpkg@v3
with:
vcpkgTriplet: x64-windows
vcpkgGitCommitId: 6185aa76504a5025f36754324abf307cc776f3da
vcpkgArguments: '@${{env.vcpkgResponseFile}}'
appendedCacheKey: ${{hashFiles(env.vcpkgResponseFile)}}
- run: cargo build --release -p lognplot
- run: cargo test -p lognplot
2 changes: 2 additions & 0 deletions .github/workflows/response_file.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
gtk
hdf5

0 comments on commit 76514f4

Please sign in to comment.