@@ -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
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-Item ${{github.workspace}}\vcpkg\installed\x64-windows\lib\gtk-3.0.lib -Destination ${{github.workspace}}\vcpkg\installed\x64-windows\lib\gtk-3.lib
43+ Copy-Item ${{github.workspace}}\vcpkg\installed\x64-windows\lib\gdk-3.0.lib -Destination ${{github.workspace}}\vcpkg\installed\x64-windows\lib\gdk-3.lib
44+ Copy-Item ${{github.workspace}}\vcpkg\installed\x64-windows\bin\gtk-3.0.dll -Destination ${{github.workspace}}\vcpkg\installed\x64-windows\bin\gtk-3.dll
45+ Copy-Item ${{github.workspace}}\vcpkg\installed\x64-windows\bin\gdk-3.0.dll -Destination ${{github.workspace}}\vcpkg\installed\x64-windows\bin\gdk-3.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