@@ -17,17 +17,17 @@ jobs:
17
17
18
18
steps :
19
19
- name : Clone
20
- uses : actions/checkout@v3
20
+ uses : actions/checkout@v4
21
21
22
22
- name : Setup Java
23
- uses : actions/setup-java@v2
23
+ uses : actions/setup-java@v3
24
24
with :
25
25
distribution : temurin
26
26
java-version : 11
27
27
cache : gradle
28
28
29
29
- name : Cache cmake build
30
- uses : actions/cache@v3
30
+ uses : actions/cache@v4
31
31
with :
32
32
path : os/android/app/.cxx
33
33
key : android-cmake-v1
@@ -51,22 +51,22 @@ jobs:
51
51
run : |
52
52
cd os/android/app/build/outputs/apk/release
53
53
cp app-release.apk fallout-ce-android.apk
54
- gh release upload ${{ github.ref_name }} fallout-ce-android.apk
54
+ gh release upload ${{ github.event.release.tag_name }} fallout-ce-android.apk
55
55
rm fallout-ce-android.apk
56
56
env :
57
57
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
58
58
59
59
ios :
60
60
name : iOS
61
61
62
- runs-on : macos-11
62
+ runs-on : macos-12
63
63
64
64
steps :
65
65
- name : Clone
66
- uses : actions/checkout@v3
66
+ uses : actions/checkout@v4
67
67
68
68
- name : Cache cmake build
69
- uses : actions/cache@v3
69
+ uses : actions/cache@v4
70
70
with :
71
71
path : build
72
72
key : ios-cmake-v1
@@ -75,25 +75,31 @@ jobs:
75
75
run : |
76
76
cmake \
77
77
-B build \
78
- -D CMAKE_BUILD_TYPE=RelWithDebInfo \
79
78
-D CMAKE_TOOLCHAIN_FILE=cmake/toolchain/ios.toolchain.cmake \
80
79
-D ENABLE_BITCODE=0 \
81
80
-D PLATFORM=OS64 \
81
+ -G Xcode \
82
+ -D CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY='' \
82
83
# EOL
83
84
84
85
- name : Build
85
86
run : |
86
87
cmake \
87
88
--build build \
89
+ --config RelWithDebInfo \
88
90
-j $(sysctl -n hw.physicalcpu) \
89
- --target package \
90
91
# EOL
91
92
93
+ - name : Pack
94
+ run : |
95
+ cd build
96
+ cpack -C RelWithDebInfo
97
+
92
98
- name : Upload
93
99
run : |
94
100
cd build
95
- cp fallout-ce.zip fallout-ce-ios.ipa
96
- gh release upload ${{ github.ref_name }} fallout-ce-ios.ipa
101
+ cp fallout-ce.ipa fallout-ce-ios.ipa
102
+ gh release upload ${{ github.event.release.tag_name }} fallout-ce-ios.ipa
97
103
rm fallout-ce-ios.ipa
98
104
env :
99
105
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -112,7 +118,7 @@ jobs:
112
118
113
119
steps :
114
120
- name : Clone
115
- uses : actions/checkout@v3
121
+ uses : actions/checkout@v4
116
122
117
123
- name : Dependencies (x86)
118
124
if : matrix.arch == 'x86'
@@ -129,7 +135,7 @@ jobs:
129
135
sudo apt install libsdl2-dev zlib1g-dev
130
136
131
137
- name : Cache cmake build
132
- uses : actions/cache@v3
138
+ uses : actions/cache@v4
133
139
with :
134
140
path : build
135
141
key : linux-${{ matrix.arch }}-cmake-v1
@@ -162,7 +168,7 @@ jobs:
162
168
run : |
163
169
cd build
164
170
tar -czvf fallout-ce-linux-${{ matrix.arch }}.tar.gz fallout-ce
165
- gh release upload ${{ github.ref_name }} fallout-ce-linux-${{ matrix.arch }}.tar.gz
171
+ gh release upload ${{ github.event.release.tag_name }} fallout-ce-linux-${{ matrix.arch }}.tar.gz
166
172
rm fallout-ce-linux-${{ matrix.arch }}.tar.gz
167
173
env :
168
174
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -174,16 +180,16 @@ jobs:
174
180
175
181
steps :
176
182
- name : Clone
177
- uses : actions/checkout@v3
183
+ uses : actions/checkout@v4
178
184
179
185
- name : Import code signing certificates
180
- uses : apple-actions/import-codesign-certs@v1
186
+ uses : apple-actions/import-codesign-certs@v2
181
187
with :
182
188
p12-file-base64 : ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_FILE_BASE64 }}
183
189
p12-password : ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_PASSWORD }}
184
190
185
191
- name : Cache cmake build
186
- uses : actions/cache@v3
192
+ uses : actions/cache@v4
187
193
with :
188
194
path : build
189
195
key : macos-cmake-v3
@@ -192,26 +198,33 @@ jobs:
192
198
run : |
193
199
cmake \
194
200
-B build \
195
- -D CMAKE_BUILD_TYPE=RelWithDebInfo \
196
- -D CPACK_BUNDLE_APPLE_CERT_APP="${{ secrets.APPLE_DEVELOPER_CERTIFICATE_IDENTITY }}" \
201
+ -G Xcode \
202
+ -D CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY="${{ secrets.APPLE_DEVELOPER_CERTIFICATE_IDENTITY }}" \
203
+ -D CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_INJECT_BASE_ENTITLEMENTS="NO" \
204
+ -D CMAKE_XCODE_ATTRIBUTE_OTHER_CODE_SIGN_FLAGS="--options=runtime --timestamp" \
197
205
# EOL
198
206
199
207
- name : Build
200
208
run : |
201
209
cmake \
202
210
--build build \
211
+ --config RelWithDebInfo \
203
212
-j $(sysctl -n hw.physicalcpu) \
204
- --target package \
205
213
# EOL
206
214
215
+ - name : Pack
216
+ run : |
217
+ cd build
218
+ cpack -C RelWithDebInfo
219
+
207
220
- name : Notarize
208
221
run : |
209
222
brew install mitchellh/gon/gon
210
223
cat << EOF > config.json
211
224
{
212
225
"notarize": {
213
- "path": "build/fallout-ce .dmg",
214
- "bundle_id": "$(/usr/libexec/PlistBuddy -c "Print :CFBundleIdentifier" build/fallout-ce .app/Contents/Info.plist)",
226
+ "path": "build/Fallout Community Edition .dmg",
227
+ "bundle_id": "$(/usr/libexec/PlistBuddy -c "Print :CFBundleIdentifier" " build/RelWithDebInfo/Fallout Community Edition .app/Contents/Info.plist" )",
215
228
"staple": true
216
229
}
217
230
}
@@ -225,8 +238,8 @@ jobs:
225
238
- name : Upload
226
239
run : |
227
240
cd build
228
- cp fallout-ce .dmg fallout-ce-macos.dmg
229
- gh release upload ${{ github.ref_name }} fallout-ce-macos.dmg
241
+ cp "Fallout Community Edition .dmg" fallout-ce-macos.dmg
242
+ gh release upload ${{ github.event.release.tag_name }} fallout-ce-macos.dmg
230
243
rm fallout-ce-macos.dmg
231
244
env :
232
245
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -247,10 +260,10 @@ jobs:
247
260
248
261
steps :
249
262
- name : Clone
250
- uses : actions/checkout@v3
263
+ uses : actions/checkout@v4
251
264
252
265
- name : Cache cmake build
253
- uses : actions/cache@v3
266
+ uses : actions/cache@v4
254
267
with :
255
268
path : build
256
269
key : windows-${{ matrix.arch }}-cmake-v1
@@ -274,7 +287,7 @@ jobs:
274
287
run : |
275
288
cd build/RelWithDebInfo
276
289
7z a fallout-ce-windows-${{ matrix.arch }}.zip fallout-ce.exe
277
- gh release upload ${{ github.ref_name }} fallout-ce-windows-${{ matrix.arch }}.zip
290
+ gh release upload ${{ github.event.release.tag_name }} fallout-ce-windows-${{ matrix.arch }}.zip
278
291
rm fallout-ce-windows-${{ matrix.arch }}.zip
279
292
env :
280
293
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments