Skip to content

Commit

Permalink
add macos builds to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
freshollie committed Feb 4, 2025
1 parent b2ea3ce commit 0551966
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,14 @@ jobs:
add: "reports maps"
message: ${{ env.REPORTS_COMMIT_MSG }}

platforms_linux:
ports:
strategy:
matrix:
platform: ["sdl", "sdl_win32", "win32"]
os: ["ubuntu-22.04", "macos-15"]
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork || github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.fork}}
runs-on: ubuntu-22.04
name: Linux build ${{ matrix.platform }}
runs-on: ${{ matrix.os }}
name: Build ${{ matrix.platform }} (${{ matrix.os }})
steps:
- name: Checkout PR
if: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_target'}}
Expand All @@ -125,9 +126,15 @@ jobs:
if: ${{ github.event_name == 'push' }}
uses: actions/checkout@master

- name: Install tools
- name: Install tools (Linux)
if: ${{ matrix.os == 'ubuntu-22.04' }}
run: |
sudo apt update && sudo apt install xorg-dev libsdl2-dev gcc-mingw-w64 libarchive-tools
- name: Install Tools (Macos)
if: ${{ matrix.os == 'macos-15' }}
run: |
brew install libpng sdl2 mingw-w64 arm-none-eabi-gcc
- name: Install SDL for win32
if: ${{ matrix.platform == 'sdl_win32' }}
Expand Down
5 changes: 1 addition & 4 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,9 @@ sudo apt install build-essential binutils-arm-none-eabi gcc-arm-none-eabi libpng
### On MacOS

```
brew install libpng sdl2 mingw-w64
brew install libpng sdl2 mingw-w64 arm-none-eabi-gcc
```

Install [**devkitARM**](http://devkitpro.org/wiki/Getting_Started/devkitARM) (Skip if not building the GBA)


## Install `agbcc` into the repo (skip if not compiling for the GBA)

Clone the [agbcc](https://github.com/SAT-R/agbcc) repo into another folder
Expand Down

0 comments on commit 0551966

Please sign in to comment.