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