Skip to content

Commit

Permalink
add FreeBSD CI build
Browse files Browse the repository at this point in the history
Run on both x86-64 and arm64.

This fixes #106.
  • Loading branch information
mmitch committed Jan 28, 2024
1 parent c96cb4e commit 6058637
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/build_freebsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# This workflow will build and test gbsplay in various configurations on FreeBSD.

name: FreeBSD Build

on:
push:
pull_request:
types: [opened]
schedule:
- cron: '13 4 5 * *'

jobs:
build-windows:
name: Build and test on FreeBSD

runs-on: ${{ matrix.os.host }}

strategy:
matrix:
os:
- name: freebsd
architecture: x86-64
version: '13.2'
host: macos-12
- name: freebsd
architecture: arm64
version: '13.2'
host: ubuntu-latest
flags: ['', '--enable-sharedlibgbs']

steps:
- uses: actions/checkout@v4
- name: Install dependencies, build and test under ${{ matrix.os.name }}
uses: cross-platform-actions/action@v0.22.0
env:
CONFIGURE_FLAGS: ${{ matrix.flags }} --enable-verbosebuild
CFLAGS: -Wformat -Werror=format-security -Wall -pedantic
with:
operating_system: ${{ matrix.os.name }}
architecture: ${{ matrix.os.architecture }}
version: ${{ matrix.os.version }}
shell: bash
memory: 5G
cpu_count: 4
run: |
yes | sudo pkg install gmake
gmake
./check_plugout_wav.sh
- name: Check activated plugouts
run: |
./check_plugouts.sh devdsp wav
- name: Check build flags
run: |
./check_buildflags.sh ${{ matrix.flags }} --enable-verbosebuild
- name: Dump configure on error
if: ${{ failure() }}
run: |
bash -x -v configure && cat config.err
10 changes: 10 additions & 0 deletions HISTORY
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
gbsplay HISTORY


202x/xx/xx - unreleased
~~~~~~~~~~~~~~~~~~~~~~~~~

Enhancements:

- build process:
- add automated build pipeline for FreeBSD (x86-64 and arm64)



2024/01/25 - 0.0.95
~~~~~~~~~~~~~~~~~~~~~

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Code coverage status](https://codecov.io/github/mmitch/gbsplay/coverage.svg?branch=master)](https://codecov.io/github/mmitch/gbsplay?branch=master)
[![Linux Build status](https://github.com/mmitch/gbsplay/workflows/Linux%20Build/badge.svg?branch=master)](https://github.com/mmitch/gbsplay/actions?query=workflow%3A%22Linux+Build%22)
[![FreeBSD Build status](https://github.com/mmitch/gbsplay/workflows/FreeBSD%20Build/badge.svg?branch=master)](https://github.com/mmitch/gbsplay/actions?query=workflow%3A%22FreeBSD+Build%22)
[![macOS Build status](https://github.com/mmitch/gbsplay/workflows/macOS%20Build/badge.svg?branch=master)](https://github.com/mmitch/gbsplay/actions?query=workflow%3A%22macOS+Build%22)
[![Windows Build status](https://github.com/mmitch/gbsplay/workflows/Windows%20Build/badge.svg?branch=master)](https://github.com/mmitch/gbsplay/actions?query=workflow%3A%22Windows+Build%22)
[![CodeQL status](https://github.com/mmitch/gbsplay/workflows/CodeQL/badge.svg?branch=master)](https://github.com/mmitch/gbsplay/actions?query=workflow%3ACodeQL)
Expand Down

0 comments on commit 6058637

Please sign in to comment.