@@ -8,9 +8,9 @@ name: MSBuild
8
8
on :
9
9
workflow_dispatch :
10
10
push :
11
- branches : [ "master", "msvc" ]
11
+ branches : [ "master", "linux", " msvc" ]
12
12
pull_request :
13
- branches : [ "master", "msvc" ]
13
+ branches : [ "master", "linux", " msvc" ]
14
14
15
15
env :
16
16
# Path to the solution file relative to the root of the project.
@@ -30,43 +30,21 @@ jobs:
30
30
31
31
steps :
32
32
- uses : actions/checkout@v4
33
-
34
- # - uses: libsdl-org/setup-sdl@main
35
- # id: sdl
36
- # with:
37
- # install-linux-dependencies: true
38
- # version: 2-latest
39
- # version-sdl-image: 2-latest
40
- # - name: debug info
41
- # run: cmake --version
42
-
43
- # - name: VS edition
44
- # run: dir "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\"
45
-
46
- # - name: invoke cli command promp
47
- # run: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat
48
- # run: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
49
-
33
+
50
34
- name : Download SDL2 development libraries
51
35
run : Invoke-WebRequest https://github.com/libsdl-org/SDL/releases/download/release-2.32.2/SDL2-devel-2.32.2-VC.zip -OutFile C:\SDL2-dev-libs-win.zip
52
-
53
36
- name : Extract SDL2 libraries
54
37
run : 7z x "C:\SDL2-dev-libs-win.zip" -oD:\a\YoAudio\YoAudio\SDL2-unzipped
55
-
56
38
- name : Copy SDL2 libraries to ./dependencies/SDL2/
57
39
run : xcopy /s /e D:\a\YoAudio\YoAudio\SDL2-unzipped\SDL2-2.32.2 dependencies\SDL2
58
-
59
40
- name : Add MSBuild to PATH
60
41
61
-
62
42
- name : Pull git-submodules
63
43
working-directory : ${{env.GITHUB_WORKSPACE}}
64
44
run : git submodule update --init --recursive --remote
65
-
66
45
- name : Run CMake to setup project
67
46
working-directory : ${{env.GITHUB_WORKSPACE}}
68
47
run : cmake -G "Visual Studio 17 2022" .
69
-
70
48
- name : Build
71
49
working-directory : ${{env.GITHUB_WORKSPACE}}
72
50
# Add additional options to the MSBuild command line here (like platform or verbosity level).
0 commit comments