Skip to content

Commit 1a9eeac

Browse files
Added ARM build for MacOSX, added more artifacts (premake#2480)
1 parent b0d5363 commit 1a9eeac

File tree

1 file changed

+60
-71
lines changed

1 file changed

+60
-71
lines changed

.github/workflows/ci-workflow.yml

Lines changed: 60 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
platform: [x64]
1212
depsrc: [none, contrib, system]
1313
cc: [gcc, clang]
14-
timeout-minutes: 30
14+
timeout-minutes: 15
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4
@@ -41,8 +41,8 @@ jobs:
4141
strategy:
4242
matrix:
4343
config: [debug, release]
44-
platform: [x64]
45-
timeout-minutes: 30
44+
platform: [x64, ARM64]
45+
timeout-minutes: 15
4646
steps:
4747
- name: Checkout
4848
uses: actions/checkout@v4
@@ -65,7 +65,7 @@ jobs:
6565
config: [debug, release]
6666
platform: [Win32, x64]
6767
msdev: [vs2022]
68-
timeout-minutes: 30
68+
timeout-minutes: 15
6969
steps:
7070
- name: Checkout
7171
uses: actions/checkout@v4
@@ -100,7 +100,7 @@ jobs:
100100
msystem: mingw32
101101
- platform: x64
102102
msystem: mingw64
103-
timeout-minutes: 30
103+
timeout-minutes: 15
104104
defaults:
105105
run:
106106
shell: msys2 {0}
@@ -142,7 +142,8 @@ jobs:
142142
strategy:
143143
matrix:
144144
config: [debug, release]
145-
timeout-minutes: 30
145+
platform: [x64]
146+
timeout-minutes: 15
146147
steps:
147148
- name: Checkout
148149
uses: actions/checkout@v4
@@ -168,15 +169,15 @@ jobs:
168169
config: [debug, release]
169170
platform: [x64]
170171
cc: [gcc, clang]
171-
timeout-minutes: 30
172+
timeout-minutes: 15
172173
defaults:
173174
run:
174175
shell: freebsd {0}
175176
steps:
176177
- name: Checkout
177178
uses: actions/checkout@v4
178179
- name: Start FreeBSD VM
179-
uses: vmactions/freebsd-vm@v1
180+
uses: vmactions/freebsd-vm@v1.2.0
180181
with:
181182
usesh: true
182183
sync: sshfs
@@ -207,15 +208,15 @@ jobs:
207208
config: [debug, release]
208209
platform: [x64]
209210
cc: [clang]
210-
timeout-minutes: 30
211+
timeout-minutes: 15
211212
defaults:
212213
run:
213214
shell: openbsd {0}
214215
steps:
215216
- name: Checkout
216217
uses: actions/checkout@v4
217218
- name: Start OpenBSD VM
218-
uses: vmactions/openbsd-vm@v1
219+
uses: vmactions/openbsd-vm@v1.1.8
219220
with:
220221
usesh: true
221222
sync: sshfs
@@ -246,94 +247,89 @@ jobs:
246247
config: [debug, release]
247248
platform: [x64]
248249
cc: [gcc]
249-
timeout-minutes: 30
250+
timeout-minutes: 15
250251
defaults:
251252
run:
252253
shell: netbsd {0}
253254
steps:
254255
- name: Checkout
255256
uses: actions/checkout@v4
256-
- name: Start NetBSD VM
257-
uses: vmactions/netbsd-vm@v1
257+
- name: Build on NetBSD VM
258+
uses: vmactions/netbsd-vm@v1.1.8
258259
with:
260+
usesh: true
259261
prepare: |
260-
pkg_add gmake
261-
- name: Build
262-
run: |
263-
cd $GITHUB_WORKSPACE
264-
PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--cc=${{ matrix.cc }}" ./Bootstrap.sh
265-
- name: Test
266-
run: |
267-
cd $GITHUB_WORKSPACE
268-
bin/${{ matrix.config }}/premake5 test --test-all
269-
- name: Docs check
270-
run: |
271-
cd $GITHUB_WORKSPACE
272-
bin/${{ matrix.config }}/premake5 docs-check
262+
set -e
263+
/usr/sbin/pkg_add pkgin
264+
pkgin -y install gmake
265+
run: |
266+
cd $GITHUB_WORKSPACE
267+
PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--cc=${{ matrix.cc }}" ./Bootstrap.sh
268+
bin/${{ matrix.config }}/premake5 test --test-all
269+
bin/${{ matrix.config }}/premake5 docs-check
270+
- name: Upload Artifacts
271+
if: matrix.config == 'release'
272+
uses: actions/upload-artifact@v4
273+
with:
274+
name: premake-netbsd-${{ matrix.platform }}
275+
path: bin/${{ matrix.config }}/
273276
dragonflybsd:
274277
runs-on: ubuntu-latest
275278
strategy:
276279
matrix:
277280
config: [debug, release]
278281
platform: [x64]
279282
cc: [gcc]
280-
timeout-minutes: 30
283+
timeout-minutes: 15
281284
defaults:
282285
run:
283286
shell: dragonflybsd {0}
284287
steps:
285288
- name: Checkout
286289
uses: actions/checkout@v4
287-
- name: Start DragonflyBSD VM
288-
uses: vmactions/dragonflybsd-vm@v1
290+
- name: Build on DragonflyBSD VM
291+
uses: vmactions/dragonflybsd-vm@v1.1.0
289292
with:
293+
usesh: true
290294
prepare: |
291295
pkg install -y gmake
292-
- name: Build
293-
run: |
294-
cd $GITHUB_WORKSPACE
295-
PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--cc=${{ matrix.cc }}" ./Bootstrap.sh
296-
- name: Test
297-
run: |
298-
cd $GITHUB_WORKSPACE
299-
bin/${{ matrix.config }}/premake5 test --test-all
300-
- name: Docs check
301-
run: |
302-
cd $GITHUB_WORKSPACE
303-
bin/${{ matrix.config }}/premake5 docs-check
296+
run: |
297+
cd $GITHUB_WORKSPACE
298+
PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--cc=${{ matrix.cc }}" ./Bootstrap.sh
299+
bin/${{ matrix.config }}/premake5 test --test-all
300+
bin/${{ matrix.config }}/premake5 docs-check
301+
- name: Upload Artifacts
302+
if: matrix.config == 'release' && matrix.cc == 'gcc'
303+
uses: actions/upload-artifact@v4
304+
with:
305+
name: premake-dragonflybsd-${{ matrix.platform }}
306+
path: bin/${{ matrix.config }}/
304307
solaris:
305308
runs-on: ubuntu-latest
306309
strategy:
307310
matrix:
308311
config: [debug, release]
309312
platform: [x64]
310313
cc: [gcc]
311-
timeout-minutes: 30
314+
timeout-minutes: 15
312315
defaults:
313316
run:
314317
shell: solaris {0}
315318
steps:
316319
- name: Checkout
317320
uses: actions/checkout@v4
318-
- name: Start Solaris VM
319-
uses: vmactions/solaris-vm@v1
321+
- name: Build on Solaris VM
322+
uses: vmactions/solaris-vm@v1.1.3
320323
with:
321324
usesh: true
322325
cpu: 4
323326
mem: 8192
324327
release: 11.4-gcc
325-
- name: Build
326-
run: |
327-
cd $GITHUB_WORKSPACE
328-
CC=${{ matrix.cc }} PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--cc=${{ matrix.cc }}" ./Bootstrap.sh
329-
- name: Test
330-
run: |
331-
cd $GITHUB_WORKSPACE
332-
bin/${{ matrix.config }}/premake5 test --test-all
333-
- name: Docs check
334-
run: |
335-
cd $GITHUB_WORKSPACE
336-
bin/${{ matrix.config }}/premake5 docs-check
328+
run: |
329+
cd $GITHUB_WORKSPACE
330+
CC=${{ matrix.cc }} PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--cc=${{ matrix.cc }}" ./Bootstrap.sh
331+
bin/${{ matrix.config }}/premake5 test --test-all
332+
bin/${{ matrix.config }}/premake5 docs-check
337333
- name: Upload Artifacts
338334
if: matrix.config == 'release' && matrix.cc == 'gcc'
339335
uses: actions/upload-artifact@v4
@@ -347,31 +343,24 @@ jobs:
347343
config: [debug, release]
348344
platform: [x64]
349345
cc: [gcc]
350-
timeout-minutes: 30
346+
timeout-minutes: 15
351347
defaults:
352348
run:
353349
shell: omnios {0}
354350
steps:
355351
- name: Checkout
356352
uses: actions/checkout@v4
357-
- name: Start OmniOS VM
358-
uses: vmactions/omnios-vm@v1
353+
- name: Build on OmniOS VM
354+
uses: vmactions/omnios-vm@v1.1.0
359355
with:
360356
usesh: true
361357
prepare: |
362358
pkg install build-essential web/ca-bundle
363-
- name: Build
364-
run: |
365-
cd $GITHUB_WORKSPACE
366-
CC=${{ matrix.cc }} PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--cc=${{ matrix.cc }}" ./Bootstrap.sh
367-
- name: Test
368-
run: |
369-
cd $GITHUB_WORKSPACE
370-
bin/${{ matrix.config }}/premake5 test --test-all
371-
- name: Docs check
372-
run: |
373-
cd $GITHUB_WORKSPACE
374-
bin/${{ matrix.config }}/premake5 docs-check
359+
run: |
360+
cd $GITHUB_WORKSPACE
361+
CC=${{ matrix.cc }} PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--cc=${{ matrix.cc }}" ./Bootstrap.sh
362+
bin/${{ matrix.config }}/premake5 test --test-all
363+
bin/${{ matrix.config }}/premake5 docs-check
375364
- name: Upload Artifacts
376365
if: matrix.config == 'release' && matrix.cc == 'gcc'
377366
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)