Skip to content

Commit

Permalink
Add archive artifact step.
Browse files Browse the repository at this point in the history
  • Loading branch information
windelbouwman committed Jul 1, 2020
1 parent 76514f4 commit 9d0c231
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ jobs:
name: Build on windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Rust toolchain installation
- name: Checkout source code
uses: actions/checkout@v2
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
- name: Install vcpkg dependencies
- name: Install vcpkg and dependencies
env:
vcpkgResponseFile: ${{github.workspace}}/.github/workflows/response_file.txt
uses: lukka/run-vcpkg@v3
Expand All @@ -36,5 +37,23 @@ jobs:
vcpkgGitCommitId: 6185aa76504a5025f36754324abf307cc776f3da
vcpkgArguments: '@${{env.vcpkgResponseFile}}'
appendedCacheKey: ${{hashFiles(env.vcpkgResponseFile)}}
- run: cargo build --release -p lognplot
- name: Fix gtk lib files
run: |
copy /y ${{github.workspace}}\vcpkg\installed\x64-windows\lib\gtk-3.lib ${{github.workspace}}\vcpkg\installed\x64-windows\lib\gtk-3.0.lib
copy /y ${{github.workspace}}\vcpkg\installed\x64-windows\lib\gdk-3.lib ${{github.workspace}}\vcpkg\installed\x64-windows\lib\gdk-3.0.lib
copy /y ${{github.workspace}}\vcpkg\installed\x64-windows\bin\gtk-3.dll ${{github.workspace}}\vcpkg\installed\x64-windows\bin\gtk-3.0.dll
copy /y ${{github.workspace}}\vcpkg\installed\x64-windows\bin\gdk-3.dll ${{github.workspace}}\vcpkg\installed\x64-windows\bin\gdk-3.0.dll
- name: Add vcpkg bin folder to path
run: echo "::add-path::${{github.workspace}}\vcpkg\installed\x64-windows\bin"
- name: Build rust code
env:
HDF5_DIR: ${{github.workspace}}\vcpkg\installed\x64-windows
GTK_LIB_DIR: ${{github.workspace}}\vcpkg\installed\x64-windows\lib
LIB: ${{github.workspace}}\vcpkg\installed\x64-windows\lib
run: cargo build --release -p lognplotgtk -p lognplot -p clognplot
- run: cargo test -p lognplot
- name: Archive executable
uses: actions/upload-artifact@v2
with:
name: app
path: target/release/*.exe

0 comments on commit 9d0c231

Please sign in to comment.