Skip to content

Commit 9217e4e

Browse files
committed
Add FreeBSD build to GitHub Actions
1 parent f05dd78 commit 9217e4e

File tree

3 files changed

+21
-25
lines changed

3 files changed

+21
-25
lines changed

.cirrus.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,32 @@ jobs:
3434
name: bsnes-${{ matrix.os.name }}
3535
path: bsnes/out/bsnes*
3636

37+
build-freebsd:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v4
41+
- uses: vmactions/freebsd-vm@v1
42+
with:
43+
release: "14.3"
44+
usesh: true
45+
prepare: |
46+
pkg install --yes gmake gdb gcc14 pkgconf sdl2 openal-soft gtk3 gtksourceview3 libXv zip
47+
run: |
48+
gmake -j4 -C bsnes local=false
49+
- name: Upload
50+
uses: actions/upload-artifact@v4
51+
with:
52+
name: bsnes-freebsd
53+
path: bsnes/out/bsnes*
54+
3755
release:
3856
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
3957
# Prevent multiple conflicting release jobs from running at once.
4058
concurrency: release-${{ github.ref == 'refs/heads/master' && 'nightly' || github.ref }}
4159
runs-on: ubuntu-latest
4260
needs:
4361
- build
62+
- build-freebsd
4463
steps:
4564
- uses: actions/checkout@v4
4665
with:
@@ -68,7 +87,7 @@ jobs:
6887
chmod +x ${bindir}/${program}-macos/${program}.app/Contents/MacOS/${program}
6988
done
7089
71-
for os in ubuntu windows macos
90+
for os in ubuntu windows macos freebsd
7291
do
7392
mkdir "${os}"
7493
cd "${os}"

nall/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ ifeq ($(compiler),)
7272
else ifeq ($(platform),linux)
7373
compiler := g++
7474
else ifeq ($(platform),bsd)
75-
compiler := g++8
75+
compiler := g++14
7676
else
7777
compiler := g++
7878
endif

0 commit comments

Comments
 (0)