@@ -21,13 +21,14 @@ jobs:
21
21
name : Build on windows
22
22
runs-on : windows-latest
23
23
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
26
27
uses : actions-rs/toolchain@v1
27
28
with :
28
29
toolchain : stable
29
30
profile : minimal
30
- - name : Install vcpkg dependencies
31
+ - name : Install vcpkg and dependencies
31
32
env :
32
33
vcpkgResponseFile : ${{github.workspace}}/.github/workflows/response_file.txt
33
34
uses : lukka/run-vcpkg@v3
36
37
vcpkgGitCommitId : 6185aa76504a5025f36754324abf307cc776f3da
37
38
vcpkgArguments : ' @${{env.vcpkgResponseFile}}'
38
39
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
40
54
- 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