-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Imp] build: CI: GitHub: CPA: FreeBSD: Add full matrix build with sys…
…tem/local/small dependencies. git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@20271 56274372-70c3-4bfc-bfc3-4c3a0b034d27
- Loading branch information
Showing
1 changed file
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
name: FreeBSD Makefile | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
- { version: 14.0, deps: sys , cpa: v0.23.0 } | ||
- { version: 14.0, deps: local, cpa: v0.23.0 } | ||
- { version: 14.0, deps: small, cpa: v0.23.0 } | ||
- { version: 13.2, deps: sys , cpa: v0.23.0 } | ||
- { version: 13.2, deps: local, cpa: v0.23.0 } | ||
- { version: 13.2, deps: small, cpa: v0.23.0 } | ||
|
||
concurrency: | ||
group: ${{github.ref}}-${{github.workflow}}-${{matrix.version}}-${{matrix.deps}} | ||
cancel-in-progress: true | ||
|
||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Startup VM | ||
uses: cross-platform-actions/action@${{matrix.cpa}} | ||
with: | ||
architecture: x86_64 | ||
hypervisor: qemu | ||
memory: 4G | ||
operating_system: freebsd | ||
version: ${{matrix.version}} | ||
shell: bash | ||
sync_files: runner-to-vm | ||
shutdown_vm: false | ||
run: true | ||
- name: Install dependencies | ||
uses: cross-platform-actions/action@${{matrix.cpa}} | ||
with: | ||
architecture: x86_64 | ||
hypervisor: qemu | ||
memory: 4G | ||
operating_system: freebsd | ||
version: ${{matrix.version}} | ||
shell: bash | ||
sync_files: false | ||
shutdown_vm: false | ||
run: | | ||
sudo pkg install -y subversion p5-XML-XPath git mawk gmake pkgconf autoconf autoconf-archive automake libtool help2man doxygen mpg123 libogg libvorbis flac libsndfile pulseaudio portaudio sdl2 | ||
- name: Build | ||
uses: cross-platform-actions/action@${{matrix.cpa}} | ||
with: | ||
architecture: x86_64 | ||
hypervisor: qemu | ||
memory: 4G | ||
operating_system: freebsd | ||
version: ${{matrix.version}} | ||
shell: bash | ||
sync_files: false | ||
shutdown_vm: false | ||
run: | | ||
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_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' }} | ||
- name: Test | ||
uses: cross-platform-actions/action@${{matrix.cpa}} | ||
with: | ||
architecture: x86_64 | ||
hypervisor: qemu | ||
memory: 4G | ||
operating_system: freebsd | ||
version: ${{matrix.version}} | ||
shell: bash | ||
sync_files: false | ||
shutdown_vm: false | ||
run: | | ||
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_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' }} check | ||
- name: Shutdown VM | ||
uses: cross-platform-actions/action@${{matrix.cpa}} | ||
with: | ||
architecture: x86_64 | ||
hypervisor: qemu | ||
memory: 4G | ||
operating_system: freebsd | ||
version: ${{matrix.version}} | ||
shell: bash | ||
sync_files: false | ||
shutdown_vm: true | ||
run: true |