add Github actions workflow for FreeBSD build

This commit is contained in:
mq1n
2025-09-02 21:02:06 +03:00
parent ccbaa03dba
commit a878786e58

35
.github/workflows/main.yml vendored Normal file
View File

@@ -0,0 +1,35 @@
name: build
on:
push:
branches:
- main
jobs:
bsd:
runs-on: ubuntu-latest
name: Main build job
steps:
- uses: actions/checkout@v4
- name: FreeBSD job
id: test
uses: vmactions/freebsd-vm@v1
with:
usesh: true
sync: sshfs
prepare: |
pkg install -y git cmake gmake
run: |
mkdir build
cd build
cmake ..
gmake all -j6
- name: Collect outputs
run: |
mkdir _output
cp build/bin/* _output
- name: Upload
uses: actions/upload-artifact@v4
with:
name: output_bsd
path: _output