Skip to content

Commit f14a2b0

Browse files
committed
[Mod] build: CI: GitHub: Use similar configuration scheme as trunk.
[Mod] build: CI: GitHub: Add all platform versions from trunk. git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.29@24372 56274372-70c3-4bfc-bfc3-4c3a0b034d27
1 parent affb420 commit f14a2b0

File tree

5 files changed

+121
-66
lines changed

5 files changed

+121
-66
lines changed

.github/workflows/FreeBSD-13.5-Makefile.yml renamed to .github/workflows/FreeBSD-Makefile.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
1-
name: FreeBSD 13.5 Makefile
1+
name: FreeBSD Makefile
22

33
on:
44
push:
55
branches: [ OpenMPT-1.29 ]
66

7-
concurrency:
8-
group: ${{ github.ref }}-${{ github.workflow }}
9-
cancel-in-progress: true
10-
117
jobs:
128
build:
139

10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
include:
14+
- { version: '14.3', deps: sys }
15+
- { version: '14.3', deps: small }
16+
- { version: '13.5', deps: sys }
17+
- { version: '13.5', deps: small }
18+
19+
concurrency:
20+
group: ${{github.ref}}-${{github.workflow}}-${{matrix.version}}-${{matrix.deps}}
21+
cancel-in-progress: true
22+
1423
runs-on: ubuntu-24.04
1524

1625
steps:
@@ -22,7 +31,7 @@ jobs:
2231
architecture: x86_64
2332
memory: 4G
2433
operating_system: freebsd
25-
version: '13.5'
34+
version: ${{matrix.version}}
2635
shell: bash
2736
sync_files: runner-to-vm
2837
shutdown_vm: false
@@ -33,7 +42,7 @@ jobs:
3342
architecture: x86_64
3443
memory: 4G
3544
operating_system: freebsd
36-
version: '13.5'
45+
version: ${{matrix.version}}
3746
shell: bash
3847
sync_files: false
3948
shutdown_vm: false
@@ -46,31 +55,31 @@ jobs:
4655
architecture: x86_64
4756
memory: 4G
4857
operating_system: freebsd
49-
version: '13.5'
58+
version: ${{matrix.version}}
5059
shell: bash
5160
sync_files: false
5261
shutdown_vm: false
5362
run: |
54-
gmake -j$(sysctl -n hw.ncpu) STRICT=1 VERBOSE=1 AUTO_DEPS=1
63+
gmake -j$(sysctl -n hw.ncpu) STRICT=1 VERBOSE=1 ${{ (matrix.deps == 'sys') && 'AUTO_DEPS=1' || (matrix.deps == 'local') && 'LOCAL_ZLIB=1 LOCAL_MPG123=1 LOCAL_OGG=1 LOCAL_VORBIS=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' || 'NO_ZLIB=1 NO_MPG123=1 NO_OGG=1 NO_VORBIS=1 NO_VORBISFILE=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' }}
5564
- name: Test
5665
uses: cross-platform-actions/action@v0.29.0
5766
with:
5867
architecture: x86_64
5968
memory: 4G
6069
operating_system: freebsd
61-
version: '13.5'
70+
version: ${{matrix.version}}
6271
shell: bash
6372
sync_files: false
6473
shutdown_vm: false
6574
run: |
66-
gmake -j$(sysctl -n hw.ncpu) STRICT=1 VERBOSE=1 AUTO_DEPS=1 check
75+
gmake -j$(sysctl -n hw.ncpu) STRICT=1 VERBOSE=1 ${{ (matrix.deps == 'sys') && 'AUTO_DEPS=1' || (matrix.deps == 'local') && 'LOCAL_ZLIB=1 LOCAL_MPG123=1 LOCAL_OGG=1 LOCAL_VORBIS=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' || 'NO_ZLIB=1 NO_MPG123=1 NO_OGG=1 NO_VORBIS=1 NO_VORBISFILE=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' }} check
6776
- name: Shutdown VM
6877
uses: cross-platform-actions/action@v0.29.0
6978
with:
7079
architecture: x86_64
7180
memory: 4G
7281
operating_system: freebsd
73-
version: '13.5'
82+
version: ${{matrix.version}}
7483
shell: bash
7584
sync_files: false
7685
shutdown_vm: true
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Ubuntu Makefile
2+
3+
on:
4+
push:
5+
branches: [ OpenMPT-1.29 ]
6+
7+
jobs:
8+
build:
9+
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
include:
14+
- { version: '24.04', deps: sys }
15+
- { version: '24.04', deps: small }
16+
- { version: '22.04', deps: sys }
17+
- { version: '22.04', deps: small }
18+
19+
concurrency:
20+
group: ${{github.ref}}-${{github.workflow}}-${{matrix.version}}-${{matrix.deps}}
21+
cancel-in-progress: true
22+
23+
runs-on: ubuntu-${{matrix.version}}
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
- name: install dependencies
28+
run: sudo apt-get update && sudo apt-get install -y subversion libxml-xpath-perl git mawk zip unzip p7zip xz-utils make binutils gcc g++ clang tcc pcc pkg-config help2man doxygen autoconf autoconf-archive automake libtool ccache zlib1g-dev libmpg123-dev libogg-dev libvorbis-dev portaudio19-dev libpulse-dev libsdl2-dev libflac-dev libsndfile1-dev libltdl-dev
29+
- name: setup parallel make
30+
run: echo "MAKEFLAGS=-j$(nproc)" >> $GITHUB_ENV
31+
- name: Build
32+
run: |
33+
make STRICT=1 ${{ (matrix.deps == 'sys') && 'AUTO_DEPS=1' || (matrix.deps == 'local') && 'LOCAL_ZLIB=1 LOCAL_MPG123=1 LOCAL_OGG=1 LOCAL_VORBIS=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' || 'NO_ZLIB=1 NO_MPG123=1 NO_OGG=1 NO_VORBIS=1 NO_VORBISFILE=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' }}
34+
- name: Test
35+
run: |
36+
make STRICT=1 ${{ (matrix.deps == 'sys') && 'AUTO_DEPS=1' || (matrix.deps == 'local') && 'LOCAL_ZLIB=1 LOCAL_MPG123=1 LOCAL_OGG=1 LOCAL_VORBIS=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' || 'NO_ZLIB=1 NO_MPG123=1 NO_OGG=1 NO_VORBIS=1 NO_VORBISFILE=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' }} check

.github/workflows/Ubuntu2204-Makefile.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/macOS-13-Makefile.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
2+
name: macOS Makefile
3+
4+
on:
5+
push:
6+
branches: [ OpenMPT-1.29 ]
7+
8+
jobs:
9+
build:
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
include:
14+
- { host: macos-26, compiler: '26.1', arch: '' , target: '' , deps: sys , check: true , ancient: false }
15+
- { host: macos-26, compiler: '26.1', arch: arm64 , target: '' , deps: small, check: true , ancient: false }
16+
- { host: macos-26, compiler: '26.1', arch: x86_64, target: '' , deps: small, check: true , ancient: false }
17+
- { host: macos-26, compiler: '26.0', arch: '' , target: '' , deps: sys , check: true , ancient: false }
18+
- { host: macos-26, compiler: '26.0', arch: arm64 , target: '' , deps: small, check: true , ancient: false }
19+
- { host: macos-26, compiler: '26.0', arch: x86_64, target: '' , deps: small, check: true , ancient: false }
20+
- { host: macos-15, compiler: '16.4', arch: '' , target: '' , deps: sys , check: true , ancient: false }
21+
- { host: macos-15, compiler: '16.4', arch: arm64 , target: '' , deps: small, check: true , ancient: false }
22+
- { host: macos-15, compiler: '16.4', arch: x86_64, target: '' , deps: small, check: true , ancient: false }
23+
- { host: macos-15, compiler: '16.3', arch: '' , target: '' , deps: sys , check: true , ancient: false }
24+
- { host: macos-15, compiler: '16.3', arch: arm64 , target: '' , deps: small, check: true , ancient: false }
25+
- { host: macos-15, compiler: '16.3', arch: x86_64, target: '' , deps: small, check: true , ancient: false }
26+
- { host: macos-15, compiler: '16.2', arch: '' , target: '' , deps: sys , check: true , ancient: false }
27+
- { host: macos-15, compiler: '16.2', arch: arm64 , target: '' , deps: small, check: true , ancient: false }
28+
- { host: macos-15, compiler: '16.2', arch: x86_64, target: '' , deps: small, check: true , ancient: false }
29+
- { host: macos-15, compiler: '16.1', arch: '' , target: '' , deps: sys , check: true , ancient: false }
30+
- { host: macos-15, compiler: '16.1', arch: arm64 , target: '' , deps: small, check: true , ancient: false }
31+
- { host: macos-15, compiler: '16.1', arch: x86_64, target: '' , deps: small, check: true , ancient: false }
32+
- { host: macos-15, compiler: '16.0', arch: '' , target: '' , deps: sys , check: true , ancient: false }
33+
- { host: macos-15, compiler: '16.0', arch: arm64 , target: '' , deps: small, check: true , ancient: false }
34+
- { host: macos-15, compiler: '16.0', arch: x86_64, target: '' , deps: small, check: true , ancient: false }
35+
- { host: macos-14, compiler: '15.4', arch: '' , target: '' , deps: sys , check: true , ancient: false }
36+
- { host: macos-14, compiler: '15.4', arch: arm64 , target: '' , deps: small, check: true , ancient: false }
37+
- { host: macos-14, compiler: '15.4', arch: x86_64, target: '' , deps: small, check: true , ancient: false }
38+
- { host: macos-13, compiler: '14.2', arch: x86_64, target: '10.13', deps: small, check: true , ancient: false }
39+
- { host: macos-13, compiler: '14.1', arch: x86_64, target: '10.13', deps: small, check: true , ancient: false }
40+
concurrency:
41+
group: ${{github.ref}}-${{github.workflow}}-${{matrix.host}}-${{matrix.compiler}}-${{matrix.arch}}-${{matrix.target}}-${{matrix.deps}}
42+
cancel-in-progress: true
43+
runs-on: ${{matrix.host}}
44+
steps:
45+
- uses: actions/checkout@v4
46+
- name: update Homebrew
47+
run: brew update
48+
- name: fixup GitHub Homebrew python breakage
49+
if: ${{ matrix.host == 'macos-13' }}
50+
run: brew unlink python@3.12 && brew unlink python@3.13 && brew link --overwrite python@3.12 && brew link --overwrite python@3.13
51+
- name: upgrade packages
52+
if: ${{ matrix.host != 'macos-13' }}
53+
run: brew upgrade
54+
- name: install dependencies
55+
run: brew install p7zip help2man doxygen autoconf autoconf-archive automake libtool mpg123 libogg libvorbis portaudio flac libsndfile sdl2
56+
- name: selecting Xcode version
57+
run: sudo xcode-select --switch /Applications/Xcode_${{matrix.compiler}}.app
58+
- name: setup parallel make
59+
run: echo "MAKEFLAGS=-j$(sysctl -n hw.ncpu)" >> $GITHUB_ENV
60+
- name: make
61+
run: make ${{ matrix.ancient == true && 'ANCIENT=1' || '' }} ARCH=${{matrix.arch}} MACOSX_VERSION_MIN=${{matrix.target}} STRICT=1 ${{ (matrix.deps == 'sys') && 'FORCE_DEPS=1' || (matrix.deps == 'local') && 'LOCAL_ZLIB=1 LOCAL_MPG123=1 LOCAL_OGG=1 LOCAL_VORBIS=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' || 'NO_ZLIB=1 NO_MPG123=1 NO_OGG=1 NO_VORBIS=1 NO_VORBISFILE=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' }}
62+
- name: make check
63+
if: ${{ matrix.check }}
64+
run: make ${{ matrix.ancient == true && 'ANCIENT=1' || '' }} ARCH=${{matrix.arch}} MACOSX_VERSION_MIN=${{matrix.target}} STRICT=1 ${{ (matrix.deps == 'sys') && 'FORCE_DEPS=1' || (matrix.deps == 'local') && 'LOCAL_ZLIB=1 LOCAL_MPG123=1 LOCAL_OGG=1 LOCAL_VORBIS=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' || 'NO_ZLIB=1 NO_MPG123=1 NO_OGG=1 NO_VORBIS=1 NO_VORBISFILE=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' }} check

0 commit comments

Comments
 (0)