Skip to content

Commit

Permalink
Add MacOS ARM support
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtrujy committed May 6, 2024
1 parent aea91cb commit 6d1de57
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,16 @@ jobs:
runs-on: ${{ matrix.os[0] }}
strategy:
matrix:
os: [[macos-13, bash], [ubuntu-latest, bash], [windows-latest, msys2]]
os: [
[macos-latest, arm64, bash],
[macos-13, x86_64, bash],
[ubuntu-latest, x86_64, bash],
[windows-latest, x86_64, msys2]
]
fail-fast: false
defaults:
run:
shell: ${{ matrix.os[1] }} {0}
shell: ${{ matrix.os[2] }} {0}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -45,11 +50,10 @@ jobs:

- name: Runs all the stages in the shell
run: |
export PATH="$(brew --prefix gnu-sed)/libexec/gnubin:$PATH" # This is just needed for MacOS
export PS2DEV=$PWD/ps2dev
export PS2SDK=$PS2DEV/ps2sdk
export GSKIT=$PS2DEV/gsKit
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/bison/bin:$PATH"
export PATH=$PATH:$PS2DEV/bin:$PS2DEV/ee/bin:$PS2DEV/iop/bin:$PS2DEV/dvp/bin:$PS2SDK/bin
./build-all.sh
Expand All @@ -63,7 +67,7 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: ps2dev-${{matrix.os[0]}}-${{ steps.slug.outputs.sha8 }}
name: ps2dev-${{matrix.os[0]}}-ps2dev-${{matrix.os[1]}}-${{ steps.slug.outputs.sha8 }}
path: ps2dev-${{matrix.os[0]}}.tar.gz

- name: Extract tag name
Expand Down

0 comments on commit 6d1de57

Please sign in to comment.