@@ -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
@@ -167,49 +167,49 @@ jobs:
167
167
168
168
# Windows artifacts
169
169
- name : Generate Windows installer
170
- if : startsWith(matrix.config.os, 'windows-')
170
+ if : runner.os == 'Windows'
171
171
env :
172
172
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
173
173
run :
174
174
meson compile win-installer -C build
175
175
176
176
- name : Generate Windows portable installer
177
- if : startsWith(matrix.config.os, 'windows-')
177
+ if : runner.os == 'Windows'
178
178
run : cd build && ninja win-portable
179
179
180
180
- name : Upload artifacts - win_installer
181
181
uses : actions/upload-artifact@v4
182
- if : startsWith(matrix.config.os, 'windows-')
182
+ if : runner.os == 'Windows'
183
183
with :
184
184
name : ${{ matrix.config.name }} - installer
185
185
path : build/Aegisub-*.exe
186
186
if-no-files-found : error
187
187
188
188
- name : Upload artifacts - portable.zip
189
189
uses : actions/upload-artifact@v4
190
- if : startsWith(matrix.config.os, 'windows-')
190
+ if : runner.os == 'Windows'
191
191
with :
192
192
name : ${{ matrix.config.name }} - portable
193
193
path : build/aegisub-portable-64.zip
194
194
195
195
# macOS artifacts
196
196
- name : Generate macOS installer
197
- if : startsWith(matrix.config.os, 'macos-')
197
+ if : runner.os == 'macOS'
198
198
run : |
199
199
meson compile osx-bundle -C build
200
200
meson compile osx-build-dmg -C build
201
201
202
202
- name : Upload artifacts - macOS dmg
203
203
uses : actions/upload-artifact@v4
204
- if : startsWith(matrix.config.os, 'macos-')
204
+ if : runner.os == 'macOS'
205
205
with :
206
206
name : ${{ matrix.config.name }} - installer
207
207
path : build/Aegisub-*.dmg
208
208
if-no-files-found : error
209
209
210
210
# Tarball
211
211
- name : Generate tarball
212
- if : matrix.config. os == 'ubuntu-latest ' && matrix.config.buildtype == 'release'
212
+ if : runner. os == 'Linux ' && matrix.config.buildtype == 'release'
213
213
run : |
214
214
set -e
215
215
@@ -223,7 +223,7 @@ jobs:
223
223
224
224
- name : Upload artifacts - tarball
225
225
uses : actions/upload-artifact@v4
226
- if : matrix.config. os == 'ubuntu-latest ' && matrix.config.buildtype == 'release'
226
+ if : runner. os == 'Linux ' && matrix.config.buildtype == 'release'
227
227
with :
228
228
name : Source Tarball
229
229
path : build/meson-dist/*.tar.xz
0 commit comments