| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- name: Macos
- run-name: Macos Build
- on:
- push:
- branches: [ "master" ]
- paths-ignore:
- - '.github/workflows/release.yml'
- - '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 sdl2 xmake
- xmake update
- - name: build sdl2-nes
- run: |
- xrepo update-repo
- cd ./sdl/sdl2
- xmake -v -y
- cp build/macosx/${{ matrix.arch }}/release/nes ../../nes-macos-${{ matrix.arch }}.AppImage
- cd ../../
- - name: build sdl3-nes
- run: |
- xrepo update-repo
- cd ./sdl/sdl3
- xmake -v -y
- # cp build/macosx/${{ matrix.arch }}/release/nes ../../nes-macos-${{ matrix.arch }}.AppImage
- cd ../../
- - uses: actions/upload-artifact@v4
- with:
- name: nes-macos-${{ matrix.arch }}.AppImage
- path: nes-macos-${{ matrix.arch }}.AppImage
|