| 1 | name: macOS (DMG) |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | pull_request: |
| 6 | workflow_dispatch: |
| 7 | |
| 8 | jobs: |
| 9 | build: |
| 10 | runs-on: macos-15 |
| 11 | steps: |
| 12 | - name: Checkout |
| 13 | uses: actions/checkout@v4 |
| 14 | |
| 15 | - name: Update brew |
| 16 | run: brew update |
| 17 | |
| 18 | - name: Install packages |
| 19 | run: brew install fmt jpeg-turbo pkg-config sdl2 sdl2_mixer |
| 20 | |
| 21 | - name: Build |
| 22 | run: | |
| 23 | echo $(date +"%Y%m%d").$(echo $GITHUB_SHA | cut -b 1-7) > VERSION |
| 24 | sh gargoyle_osx.sh |
| 25 | |
| 26 | - name: Upload artifact |
| 27 | uses: actions/upload-artifact@v4 |
| 28 | with: |
| 29 | name: Gargoyle.dmg |
| 30 | path: gargoyle*.dmg |