Skip to content

Commit

Permalink
[Mod] build: CI: GitHub: Use multi-step CPA.
Browse files Browse the repository at this point in the history
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@20002 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Dec 27, 2023
1 parent bf1ce9b commit 1af4989
Show file tree
Hide file tree
Showing 4 changed files with 212 additions and 8 deletions.
55 changes: 53 additions & 2 deletions .github/workflows/FreeBSD-12.4-Makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,68 @@ jobs:
runs-on: macos-12

steps:
- uses: actions/checkout@v4
- uses: cross-platform-actions/action@v0.22.0
- name: Checkout
uses: actions/checkout@v4
- name: Startup VM
uses: cross-platform-actions/action@v0.22.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: freebsd
version: '12.4'
shell: bash
sync_files: runner-to-vm
shutdown_vm: false
run: true
- name: Install dependencies
uses: cross-platform-actions/action@v0.22.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: freebsd
version: '12.4'
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@v0.22.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: freebsd
version: '12.4'
shell: bash
sync_files: false
shutdown_vm: false
run: |
gmake -j$(sysctl -n hw.ncpu) STRICT=1 VERBOSE=1 AUTO_DEPS=1
- name: Test
uses: cross-platform-actions/action@v0.22.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: freebsd
version: '12.4'
shell: bash
sync_files: false
shutdown_vm: false
run: |
gmake -j$(sysctl -n hw.ncpu) STRICT=1 VERBOSE=1 AUTO_DEPS=1 check
- name: Shutdown VM
uses: cross-platform-actions/action@v0.22.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: freebsd
version: '12.4'
shell: bash
sync_files: false
shutdown_vm: true
run: true
55 changes: 53 additions & 2 deletions .github/workflows/FreeBSD-13.2-Makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,68 @@ jobs:
runs-on: macos-12

steps:
- uses: actions/checkout@v4
- uses: cross-platform-actions/action@v0.22.0
- name: Checkout
uses: actions/checkout@v4
- name: Startup VM
uses: cross-platform-actions/action@v0.22.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: freebsd
version: '13.2'
shell: bash
sync_files: runner-to-vm
shutdown_vm: false
run: true
- name: Install dependencies
uses: cross-platform-actions/action@v0.22.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: freebsd
version: '13.2'
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 mpg123 libogg libvorbis flac libsndfile pulseaudio portaudio sdl2
- name: Build
uses: cross-platform-actions/action@v0.22.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: freebsd
version: '13.2'
shell: bash
sync_files: false
shutdown_vm: false
run: |
gmake -j$(sysctl -n hw.ncpu) STRICT=1 VERBOSE=1 AUTO_DEPS=1
- name: Test
uses: cross-platform-actions/action@v0.22.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: freebsd
version: '13.2'
shell: bash
sync_files: false
shutdown_vm: false
run: |
gmake -j$(sysctl -n hw.ncpu) STRICT=1 VERBOSE=1 AUTO_DEPS=1 check
- name: Shutdown VM
uses: cross-platform-actions/action@v0.22.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: freebsd
version: '13.2'
shell: bash
sync_files: false
shutdown_vm: true
run: true
55 changes: 53 additions & 2 deletions .github/workflows/NetBSD-9.3-Makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,31 @@ jobs:
runs-on: macos-12

steps:
- uses: actions/checkout@v4
- uses: cross-platform-actions/action@v0.22.0
- name: Checkout
uses: actions/checkout@v4
- name: Startup VM
uses: cross-platform-actions/action@v0.22.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: netbsd
version: '9.3'
shell: bash
sync_files: runner-to-vm
shutdown_vm: false
run: true
- name: Install dependencies
uses: cross-platform-actions/action@v0.22.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: netbsd
version: '9.3'
shell: bash
sync_files: false
shutdown_vm: false
run: |
sudo pkgin -y install subversion git p5-XML-XPath mawk
sudo pkgin -y install gmake pkgconf
Expand All @@ -34,5 +49,41 @@ jobs:
sudo pkgin -y install autoconf autoconf-archive automake libtool libltdl
sudo pkgin -y install help2man
#sudo pkgin -y install doxygen # broken
- name: Build
uses: cross-platform-actions/action@v0.22.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: netbsd
version: '9.3'
shell: bash
sync_files: false
shutdown_vm: false
run: |
gmake -j4 STRICT=1 VERBOSE=1 AUTO_DEPS=1
- name: Test
uses: cross-platform-actions/action@v0.22.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: netbsd
version: '9.3'
shell: bash
sync_files: false
shutdown_vm: false
run: |
gmake -j4 STRICT=1 VERBOSE=1 AUTO_DEPS=1 check
- name: Shutdown VM
uses: cross-platform-actions/action@v0.22.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: netbsd
version: '9.3'
shell: bash
sync_files: false
shutdown_vm: true
run: true
55 changes: 53 additions & 2 deletions .github/workflows/OpenBSD-7.4-Makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,68 @@ jobs:
runs-on: macos-12

steps:
- uses: actions/checkout@v4
- uses: cross-platform-actions/action@v0.22.0
- name: Checkout
uses: actions/checkout@v4
- name: Startup VM
uses: cross-platform-actions/action@v0.22.0
with:
architecture: x86_64
hypervisor: xhyve
memory: 4G
operating_system: openbsd
version: '7.4'
shell: bash
sync_files: runner-to-vm
shutdown_vm: false
run: true
- name: Install dependencies
uses: cross-platform-actions/action@v0.22.0
with:
architecture: x86_64
hypervisor: xhyve
memory: 4G
operating_system: openbsd
version: '7.4'
shell: bash
sync_files: false
shutdown_vm: false
run: |
sudo pkg_add subversion p5-XML-XPath git mawk gmake pkgconf autoconf autoconf-archive automake libtool libltdl help2man doxygen mpg123 libogg libvorbis flac libsndfile pulseaudio portaudio-svn sdl2
- name: Build
uses: cross-platform-actions/action@v0.22.0
with:
architecture: x86_64
hypervisor: xhyve
memory: 4G
operating_system: openbsd
version: '7.4'
shell: bash
sync_files: false
shutdown_vm: false
run: |
gmake -j$(sysctl -n hw.ncpu) STRICT=1 VERBOSE=1 AUTO_DEPS=1
- name: Test
uses: cross-platform-actions/action@v0.22.0
with:
architecture: x86_64
hypervisor: xhyve
memory: 4G
operating_system: openbsd
version: '7.4'
shell: bash
sync_files: false
shutdown_vm: false
run: |
gmake -j$(sysctl -n hw.ncpu) STRICT=1 VERBOSE=1 AUTO_DEPS=1 check
- name: Shutdown VM
uses: cross-platform-actions/action@v0.22.0
with:
architecture: x86_64
hypervisor: xhyve
memory: 4G
operating_system: openbsd
version: '7.4'
shell: bash
sync_files: false
shutdown_vm: true
run: true

0 comments on commit 1af4989

Please sign in to comment.