Skip to content

Commit

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

[Imp] build: CI: GitHub: CPA: NetBSD: Add full matrix build with system/local/small dependencies.


git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@20277 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Mar 8, 2024
1 parent feceb4d commit 4bee9f1
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
name: NetBSD 9.3 Makefile
name: NetBSD Makefile

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
build:

strategy:
matrix:
include:
- { version: 9.3, deps: sys }
- { version: 9.3, deps: local }
- { version: 9.3, deps: small }

concurrency:
group: ${{github.ref}}-${{github.workflow}}-${{matrix.version}}-${{matrix.deps}}
cancel-in-progress: true

runs-on: ubuntu-22.04

steps:
Expand All @@ -25,7 +32,7 @@ jobs:
hypervisor: qemu
memory: 4G
operating_system: netbsd
version: '9.3'
version: ${{matrix.version}}
shell: bash
sync_files: runner-to-vm
shutdown_vm: false
Expand All @@ -37,7 +44,7 @@ jobs:
hypervisor: qemu
memory: 4G
operating_system: netbsd
version: '9.3'
version: ${{matrix.version}}
shell: bash
sync_files: false
shutdown_vm: false
Expand All @@ -56,33 +63,33 @@ jobs:
hypervisor: qemu
memory: 4G
operating_system: netbsd
version: '9.3'
version: ${{matrix.version}}
shell: bash
sync_files: false
shutdown_vm: false
run: |
gmake -j4 STRICT=1 VERBOSE=1 AUTO_DEPS=1
gmake -j4 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@v0.23.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: netbsd
version: '9.3'
version: ${{matrix.version}}
shell: bash
sync_files: false
shutdown_vm: false
run: |
gmake -j4 STRICT=1 VERBOSE=1 AUTO_DEPS=1 check
gmake -j4 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@v0.23.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: netbsd
version: '9.3'
version: ${{matrix.version}}
shell: bash
sync_files: false
shutdown_vm: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
name: OpenBSD 7.4 Makefile
name: OpenBSD Makefile

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
build:

strategy:
matrix:
include:
- { version: 7.4, deps: sys }
- { version: 7.4, deps: local }
- { version: 7.4, deps: small }

concurrency:
group: ${{github.ref}}-${{github.workflow}}-${{matrix.version}}-${{matrix.deps}}
cancel-in-progress: true

runs-on: ubuntu-22.04

steps:
Expand All @@ -25,7 +32,7 @@ jobs:
hypervisor: qemu
memory: 4G
operating_system: openbsd
version: '7.4'
version: ${{matrix.version}}
shell: bash
sync_files: runner-to-vm
shutdown_vm: false
Expand All @@ -37,7 +44,7 @@ jobs:
hypervisor: qemu
memory: 4G
operating_system: openbsd
version: '7.4'
version: ${{matrix.version}}
shell: bash
sync_files: false
shutdown_vm: false
Expand All @@ -50,33 +57,33 @@ jobs:
hypervisor: qemu
memory: 4G
operating_system: openbsd
version: '7.4'
version: ${{matrix.version}}
shell: bash
sync_files: false
shutdown_vm: false
run: |
gmake -j$(sysctl -n hw.ncpu) STRICT=1 VERBOSE=1 AUTO_DEPS=1
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@v0.23.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: openbsd
version: '7.4'
version: ${{matrix.version}}
shell: bash
sync_files: false
shutdown_vm: false
run: |
gmake -j$(sysctl -n hw.ncpu) STRICT=1 VERBOSE=1 AUTO_DEPS=1 check
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@v0.23.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: openbsd
version: '7.4'
version: ${{matrix.version}}
shell: bash
sync_files: false
shutdown_vm: true
Expand Down

0 comments on commit 4bee9f1

Please sign in to comment.