Skip to content

[Imp] build: CI: GitHub: Add FreeBSD 14.0. #1

[Imp] build: CI: GitHub: Add FreeBSD 14.0.

[Imp] build: CI: GitHub: Add FreeBSD 14.0. #1

name: FreeBSD 14.0 Makefile
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Startup VM
uses: cross-platform-actions/action@c04fd7fb84e2857942df068d89ac5c27b2f3667d
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: freebsd
version: '14.0'
shell: bash
sync_files: runner-to-vm
shutdown_vm: false
run: true
- name: Install dependencies
uses: cross-platform-actions/action@c04fd7fb84e2857942df068d89ac5c27b2f3667d
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: freebsd
version: '14.0'
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@c04fd7fb84e2857942df068d89ac5c27b2f3667d
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: freebsd
version: '14.0'
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@c04fd7fb84e2857942df068d89ac5c27b2f3667d
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: freebsd
version: '14.0'
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@c04fd7fb84e2857942df068d89ac5c27b2f3667d
with:
architecture: x86_64
hypervisor: qemu
memory: 4G
operating_system: freebsd
version: '14.0'
shell: bash
sync_files: false
shutdown_vm: true
run: true