Skip to content

Macos Build

Macos Build #84

Workflow file for this run

name: Macos
run-name: Macos Build
on:
push:
branches: [ "master" ]
paths-ignore:
- 'docs/**'
- 'README.md'
- 'README_zh.md'
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
matrix:
os: [macos-latest]
arch: [arm64]
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ matrix.os }}-${{ matrix.arch }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: prepare software
run: |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew install make sdl2 xmake
xmake update
- name: build
run: |
xrepo update-repo
xmake -v -y
cp build/macosx/${{ matrix.arch }}/release/nes nes-macos-${{ matrix.arch }}.app
- uses: actions/upload-artifact@v4
with:
name: nes-macos-${{ matrix.arch }}.app
path: nes-macos-${{ matrix.arch }}.app