forked from yquake2/yquake2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
inspired from ubuntu build. note: could be done via Cirrus instead but is to keep within github actions for consistency.
- Loading branch information
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Testbuild for FreeBSD | ||
run-name: testbuild_freebsd | ||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
pull_request: | ||
types: | ||
- opened | ||
- edited | ||
concurrency: | ||
# Cancel concurrent workflows for the same PR or commit hash. | ||
group: ${{github.workflow}}-${{github.event_name == 'pull_request' && github.head_ref || github.sha}} | ||
cancel-in-progress: true | ||
jobs: | ||
build_freebsd_x64_64: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- env: ubuntu | ||
steps: | ||
uses: vmactions/freebsd-vm@v1 | ||
- name: Prepare | ||
with: | ||
uses: true | ||
sync: rsync | ||
copyback: false | ||
mem: 2048 | ||
release: "14.0" | ||
name: Install build dependencies | ||
run: | | ||
pkg install -y sdl2 openal-source curl gmake | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- name: Build | ||
run: | | ||
gmake -j2 | ||
- name: Create testbuild package | ||
run: | | ||
# Create release directory tree | ||
mkdir -p publish/quake2-freebsd-${{github.sha}}/misc/docs | ||
# Copy release assets | ||
cp -r release/* publish/quake2-freebsd-${{github.sha}}/ | ||
# Copy misc assets | ||
cp -r stuff/yq2.cfg publish/quake2-freebsd-${{github.sha}}/misc/yq2.cfg | ||
cp -r stuff/mapfixes publish/quake2-freebsd-${{github.sha}}/misc | ||
cp LICENSE publish/quake2-freebsd-${{github.sha}}/misc/docs/LICENSE.txt | ||
cp README.md publish/quake2-freebsd-${{github.sha}}/misc/docs/README.txt | ||
cp doc/010_index.md publish/quake2-freebsd-${{github.sha}}/misc/docs/010_index.txt | ||
cp doc/020_installation.md publish/quake2-freebsd-${{github.sha}}/misc/docs/020_installation.txt | ||
cp doc/030_configuration.md publish/quake2-freebsd-${{github.sha}}/misc/docs/030_configuration.txt | ||
cp doc/040_cvarlist.md publish/quake2-freebsd-${{github.sha}}/misc/docs/040_cvarlist.txt | ||
cp doc/050_commands.md publish/quake2-freebsd-${{github.sha}}/misc/docs/050_commands.txt | ||
cp doc/060_multiplayer.md publish/quake2-freebsd-${{github.sha}}/misc/docs/060_multiplayer.txt | ||
cp doc/070_packaging.md publish/quake2-freebsd-${{github.sha}}/misc/docs/070_packaging.txt | ||
cp doc/080_contributing.md publish/quake2-freebsd-${{github.sha}}/misc/docs/080_contributing.txt | ||
cp doc/090_filelists.md publish/quake2-freebsd-${{github.sha}}/misc/docs/090_filelists.md | ||
- name: Upload testbuild package | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: quake2-freebsd-${{github.sha}} | ||
path: publish/ | ||
if-no-files-found: error |