mirror of https://github.com/bsnes-emu/bsnes
Add FreeBSD build to GitHub Actions
This commit is contained in:
parent
9716212d70
commit
22a2e0a165
23
.cirrus.yml
23
.cirrus.yml
|
|
@ -1,23 +0,0 @@
|
|||
freebsd-x86_64-binaries_task:
|
||||
freebsd_instance:
|
||||
image_family: freebsd-12-2
|
||||
|
||||
setup_script:
|
||||
- pkg install --yes gmake gdb gcc8 pkgconf sdl2 openal-soft gtk3 gtksourceview3 libXv zip
|
||||
|
||||
compile_script:
|
||||
- gmake -C bsnes local=false
|
||||
|
||||
package_script:
|
||||
- mkdir bsnes-nightly
|
||||
- mkdir bsnes-nightly/Database
|
||||
- mkdir bsnes-nightly/Firmware
|
||||
- cp -a bsnes/out/bsnes bsnes-nightly/bsnes
|
||||
- cp -a bsnes/Database/* bsnes-nightly/Database
|
||||
- cp -a shaders bsnes-nightly/Shaders
|
||||
- cp -a GPLv3.txt bsnes-nightly
|
||||
- cp -a extras/* bsnes-nightly
|
||||
- zip -r bsnes-nightly.zip bsnes-nightly
|
||||
|
||||
bsnes-nightly_artifacts:
|
||||
path: "bsnes-nightly.zip"
|
||||
|
|
@ -34,6 +34,24 @@ jobs:
|
|||
name: bsnes-${{ matrix.os.name }}
|
||||
path: bsnes/out/bsnes*
|
||||
|
||||
build-freebsd:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: vmactions/freebsd-vm@v1
|
||||
with:
|
||||
release: "14.3"
|
||||
usesh: true
|
||||
prepare: |
|
||||
pkg install --yes gmake gdb gcc14 pkgconf sdl2 openal-soft gtk3 gtksourceview3 libXv zip
|
||||
run: |
|
||||
gmake -j4 -C bsnes local=false
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: bsnes-freebsd
|
||||
path: bsnes/out/bsnes*
|
||||
|
||||
release:
|
||||
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
|
||||
# Prevent multiple conflicting release jobs from running at once.
|
||||
|
|
@ -41,6 +59,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- build
|
||||
- build-freebsd
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
|
@ -68,7 +87,7 @@ jobs:
|
|||
chmod +x ${bindir}/${program}-macos/${program}.app/Contents/MacOS/${program}
|
||||
done
|
||||
|
||||
for os in ubuntu windows macos
|
||||
for os in ubuntu windows macos freebsd
|
||||
do
|
||||
mkdir "${os}"
|
||||
cd "${os}"
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ ifeq ($(compiler),)
|
|||
else ifeq ($(platform),linux)
|
||||
compiler := g++
|
||||
else ifeq ($(platform),bsd)
|
||||
compiler := g++8
|
||||
compiler := g++14
|
||||
else
|
||||
compiler := g++
|
||||
endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue