@@ -99,13 +99,13 @@ jobs:
99
99
pip install meson==1.7.2
100
100
101
101
- name : Setup MSVC
102
- if : startsWith(matrix.config.os, 'windows-') && matrix.config.msvc == true
102
+ if : runner.os == 'Windows' && matrix.config.msvc == true
103
103
uses : ilammy/msvc-dev-cmd@v1
104
104
with :
105
105
arch : ${{ matrix.config.arch }}
106
106
107
107
- name : Install dependencies (Windows)
108
- if : startsWith(matrix.config.os, 'windows-')
108
+ if : runner.os == 'Windows'
109
109
run : |
110
110
choco install ninja innosetup
111
111
@@ -125,7 +125,7 @@ jobs:
125
125
popd
126
126
127
127
- name : Install dependencies (MacOS)
128
- if : startsWith(matrix.config.os, 'macos-')
128
+ if : runner.os == 'macOS'
129
129
run : |
130
130
export HOMEBREW_NO_INSTALL_CLEANUP=1
131
131
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
@@ -138,7 +138,7 @@ jobs:
138
138
brew install pulseaudio # NO OpenAL in github CI
139
139
140
140
- name : Install dependencies (Linux)
141
- if : startsWith(matrix.config.os, 'ubuntu-')
141
+ if : runner.os == 'Linux'
142
142
run : |
143
143
sudo apt-get update
144
144
sudo apt-get install ninja-build build-essential libx11-dev libfreetype6-dev pkg-config libfontconfig1-dev libass-dev libasound2-dev libffms2-dev intltool libboost-all-dev libhunspell-dev libcurl4-openssl-dev libuchardet-dev libgtest-dev libgmock-dev libwxgtk3.2-dev
@@ -166,49 +166,49 @@ jobs:
166
166
167
167
# Windows artifacts
168
168
- name : Generate Windows installer
169
- if : startsWith(matrix.config.os, 'windows-')
169
+ if : runner.os == 'Windows'
170
170
env :
171
171
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
172
172
run :
173
173
meson compile win-installer -C build
174
174
175
175
- name : Generate Windows portable installer
176
- if : startsWith(matrix.config.os, 'windows-')
176
+ if : runner.os == 'Windows'
177
177
run : cd build && ninja win-portable
178
178
179
179
- name : Upload artifacts - win_installer
180
180
uses : actions/upload-artifact@v4
181
- if : startsWith(matrix.config.os, 'windows-')
181
+ if : runner.os == 'Windows'
182
182
with :
183
183
name : ${{ matrix.config.name }} - installer
184
184
path : build/Aegisub-*.exe
185
185
if-no-files-found : error
186
186
187
187
- name : Upload artifacts - portable.zip
188
188
uses : actions/upload-artifact@v4
189
- if : startsWith(matrix.config.os, 'windows-')
189
+ if : runner.os == 'Windows'
190
190
with :
191
191
name : ${{ matrix.config.name }} - portable
192
192
path : build/aegisub-portable-64.zip
193
193
194
194
# macOS artifacts
195
195
- name : Generate macOS installer
196
- if : startsWith(matrix.config.os, 'macos-')
196
+ if : runner.os == 'macOS'
197
197
run : |
198
198
meson compile osx-bundle -C build
199
199
meson compile osx-build-dmg -C build
200
200
201
201
- name : Upload artifacts - macOS dmg
202
202
uses : actions/upload-artifact@v4
203
- if : startsWith(matrix.config.os, 'macos-')
203
+ if : runner.os == 'macOS'
204
204
with :
205
205
name : ${{ matrix.config.name }} - installer
206
206
path : build/Aegisub-*.dmg
207
207
if-no-files-found : error
208
208
209
209
# Tarball
210
210
- name : Generate tarball
211
- if : matrix.config. os == 'ubuntu-latest ' && matrix.config.buildtype == 'release'
211
+ if : runner. os == 'Linux ' && matrix.config.buildtype == 'release'
212
212
run : |
213
213
set -e
214
214
@@ -222,7 +222,7 @@ jobs:
222
222
223
223
- name : Upload artifacts - tarball
224
224
uses : actions/upload-artifact@v4
225
- if : matrix.config. os == 'ubuntu-latest ' && matrix.config.buildtype == 'release'
225
+ if : runner. os == 'Linux ' && matrix.config.buildtype == 'release'
226
226
with :
227
227
name : Source Tarball
228
228
path : build/meson-dist/*.tar.xz
0 commit comments