Skip to content
This repository has been archived by the owner on Dec 2, 2023. It is now read-only.

Commit

Permalink
Add macOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
angelo-wf committed Aug 13, 2023
1 parent 4380a2c commit dcbc1fa
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ on:

jobs:
build_linux:
if: false # temporary
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install dependecies
run: |
sudo apt update -qy
sudo apt install -qy libsdl2-dev
sudo apt-get update -qy
sudo apt-get install -qy libsdl2-dev
- name: Build
run: make CC=gcc
- name: Create zip
Expand All @@ -26,3 +27,30 @@ jobs:
with:
name: LakeSnes (Linux)
path: lakesnes_linux.zip

build_macos:
runs-on: macos-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Fetch SDL2 release dmg
uses: dsaltares/fetch-gh-release-asset@1.1.1
with:
repo: libsdl-org/SDL
regex: true
file: SDL2-*.dmg
- name: Build
run: |
hdiutil attach -mountpoint sdl2 SDL2-*.dmg
make LakeSnes.app
hdiutil detach sdl2
- name: Create zip
uses: thedoctor0/zip-release@0.7.1
with:
filename: lakesnes_macos.zip
path: LakeSnes.app LICENSE.txt
- name: Publsh artifact
uses: actions/upload-artifact@v3
with:
name: LakeSnes (macOS)
path: lakesnes_macos.zip

0 comments on commit dcbc1fa

Please sign in to comment.