[Fix] build: CI: GitHub: CPA: libopenmpt 0.6 does not support local d… #3368
This file contains hidden or 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
| name: FreeBSD Makefile | |
| on: | |
| push: | |
| branches: [ OpenMPT-1.30 ] | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - { version: '15.0', deps: sys } | |
| - { version: '15.0', deps: small } | |
| - { version: '14.4', deps: sys } | |
| - { version: '14.4', deps: small } | |
| - { version: '13.5', deps: sys } | |
| - { version: '13.5', deps: small } | |
| concurrency: | |
| group: ${{github.ref}}-${{github.workflow}}-${{matrix.version}}-${{matrix.deps}} | |
| cancel-in-progress: true | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Startup VM | |
| uses: cross-platform-actions/action@v1.2.0 | |
| with: | |
| architecture: x86_64 | |
| memory: 4G | |
| operating_system: freebsd | |
| version: ${{matrix.version}} | |
| shell: bash | |
| sync_files: false | |
| - name: Sync files to VM | |
| shell: cpa.sh {0} --sync-files runner-to-vm | |
| run: true | |
| - name: Install dependencies | |
| shell: cpa.sh {0} --sync-files none | |
| run: | | |
| sudo pkg upgrade -y | |
| 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 | |
| shell: cpa.sh {0} --sync-files none | |
| 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_VORBISFILE=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' }} | |
| - name: Test | |
| shell: cpa.sh {0} --sync-files none | |
| 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_VORBISFILE=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' }} check |