Skip to content

Commit

Permalink
ci: Test *BSD build
Browse files Browse the repository at this point in the history
Tests on OpenBSD, FreeBSD and NetBSD. Both x86-64 and arm64 are used.
  • Loading branch information
Ioannis Konstantelias committed Oct 25, 2024
1 parent 010573d commit d5494f4
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/build_bsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: "Build on *BSD"

on:
push: {}
pull_request: {}

env:
architecture: x86-64

jobs:
build-openbsd:
runs-on: ubuntu-latest
#- name: netbsd
# architecture: x86-64
# version: '9.4'

steps:
- uses: actions/checkout@v4

- name: Build on openbsd, x86-64, 7.4
uses: cross-platform-actions/action@v0.25.0
env:
AUTOCONF_VERSION: 2.71
AUTOMAKE_VERSION: 1.16
with:
operating_system: openbsd
architecture: $architecture
version: '7.4'
memory: 4G
sync_files: runner-to-vm
environment_variables: AUTOCONF_VERSION AUTOMAKE_VERSION
shell: bash
run: |
sudo pkg_add autoconf-$AUTOCONF_VERSION automake-1.16.5 libtool
autoreconf -vfi
./configure
make
build-freebsd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build on freebsd
uses: cross-platform-actions/action@v0.25.0
with:
operating_system: freebsd
architecture: $architecture
version: '14.0'
memory: 4G
sync_files: runner-to-vm
environment_variables: AUTOCONF_VERSION AUTOMAKE_VERSION
shell: bash
run: |
sudo pkg install -y autoconf automake libtool
autoreconf -vfi
./configure
make

0 comments on commit d5494f4

Please sign in to comment.