File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 65
65
runs-on : windows-latest
66
66
67
67
steps :
68
+ - name : Setup MSVC dev command prompt
69
+ uses : TheMrMilchmann/setup-msvc-dev@v3
70
+ with :
71
+ arch : x64
72
+ toolset : 14.38.33130
73
+
74
+ - name : Export GitHub Actions cache environment variables
75
+ uses : actions/github-script@v6
76
+ with :
77
+ script : |
78
+ core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
79
+ core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
80
+
68
81
- name : Checkout libprojectM Sources
69
82
uses : actions/checkout@v3
70
83
with :
73
86
submodules : recursive
74
87
75
88
- name : Build/Install libprojectM
89
+ env :
90
+ VCPKG_BINARY_SOURCES : " clear;x-gha,readwrite"
76
91
run : |
77
92
mkdir cmake-build-libprojectm
78
93
cmake -G "Visual Studio 17 2022" -A "X64" -S "${{ github.workspace }}/projectm" -B "${{ github.workspace }}/cmake-build-libprojectm" -DCMAKE_TOOLCHAIN_FILE="${Env:VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install-libprojectm" -DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded$<$<CONFIG:Debug>:Debug>" -DCMAKE_VERBOSE_MAKEFILE=YES -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=NO
86
101
submodules : recursive
87
102
88
103
- name : Build projectMSDL
104
+ env :
105
+ VCPKG_BINARY_SOURCES : " clear;x-gha,readwrite"
89
106
run : |
90
107
mkdir cmake-build-frontend-sdl2
91
108
cmake -G "Visual Studio 17 2022" -A "X64" -S "${{ github.workspace }}/frontend-sdl2" -B "${{ github.workspace }}/cmake-build-frontend-sdl2" -DCMAKE_TOOLCHAIN_FILE="${Env:VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_PREFIX_PATH="${{ github.workspace }}/install-libprojectm" -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install-frontend-sdl2" -DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded$<$<CONFIG:Debug>:Debug>" -DCMAKE_VERBOSE_MAKEFILE=YES -DSDL2_LINKAGE=static -DBUILD_TESTING=YES
Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json" ,
3
3
"dependencies" : [
4
+ " glew" ,
4
5
" sdl2" ,
5
6
" poco" ,
6
7
" freetype"
You can’t perform that action at this time.
0 commit comments