Fixed the X11 install dir config #75
Workflow file for this run
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
name: Build - MacOS | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
macos: | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
runs-on: macos-11 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Install dependencies | |
run: brew install SDL2 SDL2_image SDL2_mixer | |
- name: Configure | |
run: cmake -B build -DUSE_SDL2_LIBS=ON -DUSE_PNG_SAVE=ON -DSMW_INSTALL_PORTABLE=ON | |
- name: Build | |
run: cmake --build build | |
- name: Package | |
run: | | |
cmake --install build --prefix supermariowar --strip | |
rm -rf supermariowar/include supermariowar/lib | |
zip -r "supermariowar_$(date +%F)_macos.zip" supermariowar | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: supermariowar_macos | |
path: supermariowar_*_macos.zip |