File tree 1 file changed +29
-5
lines changed
1 file changed +29
-5
lines changed Original file line number Diff line number Diff line change 36
36
msystem : ucrt64
37
37
extra-cmake-args : -G "MSYS Makefiles"
38
38
exe-extension : .exe
39
- shell : msys2 {0}
40
39
41
40
- system : MacOS-ARM
42
41
runner : macos-latest
@@ -47,12 +46,15 @@ jobs:
47
46
exclude :
48
47
- webgpu-backend : DAWN
49
48
link-type : STATIC
50
-
51
-
49
+
52
50
runs-on : ${{ matrix.runner }}
53
51
54
52
steps :
55
53
- uses : actions/checkout@v4
54
+
55
+ - name : Set shell
56
+ shell : bash
57
+ run : echo "SHELL=${{ matrix.shell }}" >> $GITHUB_ENV
56
58
57
59
- name : Install dependencies
58
60
if : ${{ matrix.install-deps }}
66
68
pacboy : cmake:p egl-headers:p
67
69
68
70
- name : Configure CMake
69
- shell : ${{ matrix.shell }}
71
+ if : ${{ ! matrix.msystem }}
70
72
run : >
71
73
cmake
72
74
-S examples
77
79
${{ matrix.extra-cmake-args }}
78
80
79
81
- name : Build
80
- shell : ${{ matrix.shell }}
82
+ if : ${{ ! matrix.msystem }}
83
+ run : >
84
+ cmake
85
+ --build build
86
+ --config ${{ matrix.build-type }}
87
+
88
+ # This is a hack to work around the lack of ${{ variables }} in 'shell' parameter
89
+ # We use the SHELL env variable as the value of 'shell'
90
+ - name : Configure CMake (MSYS)
91
+ if : ${{ matrix.msystem }}
92
+ shell : msys2 {0}
93
+ run : >
94
+ cmake
95
+ -S examples
96
+ -B build
97
+ -DWEBGPU_BACKEND=${{ matrix.webgpu-backend }}
98
+ -D${{ matrix.webgpu-backend }}_LINK_TYPE=${{ matrix.link-type }}
99
+ -DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
100
+ ${{ matrix.extra-cmake-args }}
101
+
102
+ - name : Build (MSYS)
103
+ if : ${{ matrix.msystem }}
104
+ shell : msys2 {0}
81
105
run : >
82
106
cmake
83
107
--build build
You can’t perform that action at this time.
0 commit comments