Skip to content

Commit 9d0c231

Browse files
committed
Add archive artifact step.
1 parent 76514f4 commit 9d0c231

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

Diff for: .github/workflows/ci.yml

+23-4
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ jobs:
2121
name: Build on windows
2222
runs-on: windows-latest
2323
steps:
24-
- uses: actions/checkout@v2
25-
- name: Rust toolchain installation
24+
- name: Checkout source code
25+
uses: actions/checkout@v2
26+
- name: Install rust toolchain
2627
uses: actions-rs/toolchain@v1
2728
with:
2829
toolchain: stable
2930
profile: minimal
30-
- name: Install vcpkg dependencies
31+
- name: Install vcpkg and dependencies
3132
env:
3233
vcpkgResponseFile: ${{github.workspace}}/.github/workflows/response_file.txt
3334
uses: lukka/run-vcpkg@v3
@@ -36,5 +37,23 @@ jobs:
3637
vcpkgGitCommitId: 6185aa76504a5025f36754324abf307cc776f3da
3738
vcpkgArguments: '@${{env.vcpkgResponseFile}}'
3839
appendedCacheKey: ${{hashFiles(env.vcpkgResponseFile)}}
39-
- run: cargo build --release -p lognplot
40+
- name: Fix gtk lib files
41+
run: |
42+
copy /y ${{github.workspace}}\vcpkg\installed\x64-windows\lib\gtk-3.lib ${{github.workspace}}\vcpkg\installed\x64-windows\lib\gtk-3.0.lib
43+
copy /y ${{github.workspace}}\vcpkg\installed\x64-windows\lib\gdk-3.lib ${{github.workspace}}\vcpkg\installed\x64-windows\lib\gdk-3.0.lib
44+
copy /y ${{github.workspace}}\vcpkg\installed\x64-windows\bin\gtk-3.dll ${{github.workspace}}\vcpkg\installed\x64-windows\bin\gtk-3.0.dll
45+
copy /y ${{github.workspace}}\vcpkg\installed\x64-windows\bin\gdk-3.dll ${{github.workspace}}\vcpkg\installed\x64-windows\bin\gdk-3.0.dll
46+
- name: Add vcpkg bin folder to path
47+
run: echo "::add-path::${{github.workspace}}\vcpkg\installed\x64-windows\bin"
48+
- name: Build rust code
49+
env:
50+
HDF5_DIR: ${{github.workspace}}\vcpkg\installed\x64-windows
51+
GTK_LIB_DIR: ${{github.workspace}}\vcpkg\installed\x64-windows\lib
52+
LIB: ${{github.workspace}}\vcpkg\installed\x64-windows\lib
53+
run: cargo build --release -p lognplotgtk -p lognplot -p clognplot
4054
- run: cargo test -p lognplot
55+
- name: Archive executable
56+
uses: actions/upload-artifact@v2
57+
with:
58+
name: app
59+
path: target/release/*.exe

0 commit comments

Comments
 (0)