5
5
strategy :
6
6
matrix :
7
7
include :
8
- - platform : win32
8
+ - platform : x64
9
9
os : windows-latest
10
- triplet : x86-windows
11
- # - platform: x64
12
- # os: windows-latest
13
- # triplet: x64-windows
10
+ triplet : x64-windows
14
11
runs-on : ${{ matrix.os }}
15
12
env :
16
13
VCPKG_DEFAULT_TRIPLET : ${{ matrix.triplet }}
17
14
VCPKG_INSTALLED_DIR : ${{ github.workspace }}/vcpkg_installed/
18
15
DEPS_DIR : ${{ github.workspace }}/vcpkg_installed/${{ matrix.triplet }}
16
+ INST_DIR : ${{ github.workspace }}/install-prefix
19
17
steps :
20
18
- name : Checkout
21
19
uses : actions/checkout@v2
22
20
with :
23
21
submodules : " recursive"
22
+
24
23
- name : run-vcpkg
25
24
uses : lukka/run-vcpkg@v10
26
25
with :
27
26
vcpkgJsonGlob : " ./vcpkg.json"
28
27
runVcpkgInstall : true
28
+
29
29
- name : Setup MSBuild
30
30
uses : microsoft/setup-msbuild@v1
31
- - name : Check dependencies
32
- run : " ls ${{ env.DEPS_DIR }}"
31
+
32
+ - name : Obtain and run CMake
33
+
34
+ with :
35
+ source-dir : " ."
36
+ build-dir : " build"
37
+ generator : " Visual Studio 17 2022"
38
+ options : CMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake CMAKE_INSTALL_PREFIX="${{ env.INST_DIR }}"
39
+
33
40
- name : Build DLL
34
- run : " msbuild SimpleGraphic.vcxproj /p:configuration=release /p:platform=${{ matrix.platform }}"
41
+ run : " cmake --build build --config Release -t INSTALL"
42
+
35
43
- name : Archive DLL
36
44
uses : actions/upload-artifact@v3
37
45
with :
38
46
name : SimpleGraphic-${{ matrix.triplet }}.dll
39
- path : " ${{ github.workspace }}/Release/SimpleGraphic.dll"
47
+ path : " ${{ env.INST_DIR }}/SimpleGraphic.dll"
48
+
40
49
- name : Archive DLL symbols
41
50
uses : actions/upload-artifact@v3
42
51
with :
43
52
name : SimpleGraphic-${{ matrix.triplet }}.pdb
44
- path : " ${{ github.workspace }}/Release/SimpleGraphic.pdb"
53
+ path : " ${{ github.workspace }}/build/Release/SimpleGraphic.pdb"
54
+
45
55
- name : Archive dependency DLLs
46
56
uses : actions/upload-artifact@v3
47
57
with :
48
58
name : SimpleGraphic-${{ matrix.triplet }}-deps.dll
49
- path : " ${{ env.DEPS_DIR }}/bin/*.dll"
59
+ path : |
60
+ ${{ env.INST_DIR }}/*.dll
61
+ !${{ env.INST_DIR }}/SimpleGraphic.dll
62
+
50
63
- name : Archive dependency DLL symbols
51
64
uses : actions/upload-artifact@v3
52
65
with :
53
66
name : SimpleGraphic-${{ matrix.triplet }}-deps.pdb
54
- path : " ${{ env.DEPS_DIR }}/bin/*.pdb"
67
+ path : |
68
+ ${{ env.DEPS_DIR }}/bin/*.pdb
69
+ ${{ github.workspace }}/build/Release/lzip.pdb
70
+ ${{ github.workspace }}/build/Release/lcurl.pdb
0 commit comments