Skip to content

Commit

Permalink
Github build for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielGibson committed Aug 18, 2024
1 parent 0ebc8f4 commit 3f8c8f5
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Testbuild for MacOS
run-name: testbuild_macos
on:
push:
branches:
- 'master'
pull_request:
types:
- edited
- opened
- synchronize
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_macos_aarch64:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
include:
- env: macos
steps:
- name: Install build dependencies
run: |
brew update
brew install sdl2 openal-soft make cmake
- name: Check out repository code
uses: actions/checkout@v4
- name: Build
run: |
mkdir build
cmake -DDEDICATED=ON -S neo/ -B build
cmake --build build
- name: Create testbuild package
run: |
# Create release directory tree
mkdir -p publish/dhewm3-macos-${{github.sha}}/base
mkdir publish/dhewm3-macos-${{github.sha}}/d3xp
# Copy release assets
cd build
ls
cp dhewm3 dhewm3ded base.dylib d3xp.dylib ../publish/dhewm3-macos-${{github.sha}}/
cd ..
# Copy misc assets
cp base/gamepad.cfg publish/dhewm3-macos-${{github.sha}}/base/
cp base/gamepad-d3xp.cfg publish/dhewm3-macos-${{github.sha}}/d3xp/
cp COPYING.txt publish/dhewm3-macos-${{github.sha}}/
cp README.md publish/dhewm3-macos-${{github.sha}}/README.txt
cp Changelog.md publish/dhewm3-macos-${{github.sha}}/Changelog.txt
cp Configuration.md publish/dhewm3-macos-${{github.sha}}/Configuration.txt
- name: Upload testbuild package
uses: actions/upload-artifact@v4
with:
name: quake2-macos-${{github.sha}}
path: publish/
if-no-files-found: error

0 comments on commit 3f8c8f5

Please sign in to comment.