Merge pull request #4 from aymnms/dev #7
This file contains hidden or 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 MarioISN | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build-macos-arm: | |
| name: Build for macOS ARM | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: brew install sdl2 sdl2_image sdl2_mixer | |
| - name: Configure CMake | |
| run: cmake -B build-arm -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES="arm64" | |
| - name: Build | |
| run: cmake --build build-arm --config Release | |
| - name: Remove quarantine attribute | |
| run: xattr -rd com.apple.quarantine build-arm/mario_isn.app | |
| - name: Sign app | |
| run: codesign --force --deep --sign - build-arm/mario_isn.app | |
| - name: Package .app | |
| run: | | |
| cd build-arm | |
| zip -r MarioISN-macos-arm.zip mario_isn.app | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: MarioISN-macos-arm | |
| path: build-arm/MarioISN-macos-arm.zip |