Skip to content

Commit

Permalink
[New] build: CI: GitHub: CPA: Add Autotools builders for FreeBSD, Ope…
Browse files Browse the repository at this point in the history
…nBSD, and NetBSD.

git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@20504 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Apr 5, 2024
1 parent f634652 commit 24b0aab
Show file tree
Hide file tree
Showing 3 changed files with 236 additions and 0 deletions.
77 changes: 77 additions & 0 deletions .github/workflows/FreeBSD-Autotools.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: FreeBSD Autotools

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

jobs:
build:

strategy:
fail-fast: false
matrix:
include:
- { version: '14.0' }
- { version: '13.3' }

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

runs-on: ubuntu-22.04

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Startup VM
uses: cross-platform-actions/action@c127ecaef41abd571584abbbc5eaf17364bfbbe9
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@c127ecaef41abd571584abbbc5eaf17364bfbbe9
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@c127ecaef41abd571584abbbc5eaf17364bfbbe9
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: freebsd
version: ${{matrix.version}}
shell: bash
sync_files: false
shutdown_vm: false
run: |
./build/autotools/autoconfiscate.sh
- name: Shutdown VM
uses: cross-platform-actions/action@c127ecaef41abd571584abbbc5eaf17364bfbbe9
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: freebsd
version: ${{matrix.version}}
shell: bash
sync_files: false
shutdown_vm: true
run: true
83 changes: 83 additions & 0 deletions .github/workflows/NetBSD-Autotools.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: NetBSD Autotools

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

jobs:
build:

strategy:
fail-fast: false
matrix:
include:
- { version: '10.0' }
- { version: '9.3' }

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

runs-on: ubuntu-22.04

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Startup VM
uses: cross-platform-actions/action@141cc293701219fd2f72b3abd9ca1fc322cf7d84
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: netbsd
version: ${{matrix.version}}
shell: bash
sync_files: runner-to-vm
shutdown_vm: false
run: true
- name: Install dependencies
uses: cross-platform-actions/action@141cc293701219fd2f72b3abd9ca1fc322cf7d84
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: netbsd
version: ${{matrix.version}}
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
sudo pkgin -y install mpg123 libogg libvorbis flac libsndfile pulseaudio portaudio SDL2
sudo pkgin -y install gcc7-libs # for libstdc++7
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@141cc293701219fd2f72b3abd9ca1fc322cf7d84
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: netbsd
version: ${{matrix.version}}
shell: bash
sync_files: false
shutdown_vm: false
run: |
./build/autotools/autoconfiscate.sh
- name: Shutdown VM
uses: cross-platform-actions/action@141cc293701219fd2f72b3abd9ca1fc322cf7d84
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: netbsd
version: ${{matrix.version}}
shell: bash
sync_files: false
shutdown_vm: true
run: true
76 changes: 76 additions & 0 deletions .github/workflows/OpenBSD-Autotools.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: OpenBSD Autotools

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

jobs:
build:

strategy:
fail-fast: false
matrix:
include:
- { version: '7.4' }

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

runs-on: ubuntu-22.04

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Startup VM
uses: cross-platform-actions/action@v0.23.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: openbsd
version: ${{matrix.version}}
shell: bash
sync_files: runner-to-vm
shutdown_vm: false
run: true
- name: Install dependencies
uses: cross-platform-actions/action@v0.23.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: openbsd
version: ${{matrix.version}}
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.23.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: openbsd
version: ${{matrix.version}}
shell: bash
sync_files: false
shutdown_vm: false
run: |
./build/autotools/autoconfiscate.sh
- name: Shutdown VM
uses: cross-platform-actions/action@v0.23.0
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: openbsd
version: ${{matrix.version}}
shell: bash
sync_files: false
shutdown_vm: true
run: true

0 comments on commit 24b0aab

Please sign in to comment.