Skip to content

Commit

Permalink
[Imp] build: CI: GitHub: CPA: FreeBSD: Add full matrix build with sys…
Browse files Browse the repository at this point in the history
…tem/local/small dependencies.

git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@20271 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Mar 8, 2024
1 parent 809237a commit 3b5c719
Showing 1 changed file with 93 additions and 0 deletions.
93 changes: 93 additions & 0 deletions .github/workflows/FreeBSD.yml
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

0 comments on commit 3b5c719

Please sign in to comment.