Skip to content

add CI for Mac arm64 #116

add CI for Mac arm64

add CI for Mac arm64 #116

Workflow file for this run

name: CI
on:
push:
pull_request:
repository_dispatch:
types: [run_build]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
# os: [macos-15-intel, ubuntu-latest, macos-26]
steps:
- uses: actions/checkout@v6
- name: Install Ubuntu requirements
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get -y install autoconf automake bison flex gcc libelf-dev make texinfo libncurses5-dev patch python3 python-is-python3 subversion wget zlib1g-dev libtool-bin python3-dev bzip2 libgmp3-dev pkg-config
- name: Install macOS intel requirements
if: matrix.os == 'macos-15-intel'
shell: arch -x86_64 bash -e {0}
env:
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1
HOMEBREW_NO_ENV_HINTS: 1
run: |
brew install autoconf automake openssl libelf ncurses zlib gmp wget pkg-config texinfo
- name: Install macOS arm64 requirements
if: matrix.os == 'macos-26'
shell: bash -e {0}
env:
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1
HOMEBREW_NO_ENV_HINTS: 1
run: |
brew install autoconf automake openssl libelf ncurses zlib gmp wget pkg-config texinfo
- name: Runs all the stages in the shell
if: matrix.os == 'ubuntu-latest'
shell: bash -e {0}
env:
BUILD_PS3TOOLCHAIN_ONLY: 1
run: |
mkdir $PWD/ps3dev
export PS3DEV=$PWD/ps3dev
export PSL1GHT=$PS3DEV
export PATH=$PATH:$PS3DEV/bin
export PATH=$PATH:$PS3DEV/ppu/bin
export PATH=$PATH:$PS3DEV/spu/bin
./toolchain.sh
- name: Runs all the stages in the shell
if: matrix.os == 'macos-15-intel'
shell: arch -x86_64 bash -e {0}
env:
BUILD_PS3TOOLCHAIN_ONLY: 1
run: |
mkdir $PWD/ps3dev
export PS3DEV=$PWD/ps3dev
export PSL1GHT=$PS3DEV
export PATH=$PATH:$PS3DEV/bin
export PATH=$PATH:$PS3DEV/ppu/bin
export PATH=$PATH:$PS3DEV/spu/bin
./toolchain.sh
- name: Runs all the stages in the shell
if: matrix.os == 'macos-26'
shell: bash -e {0}
env:
BUILD_PS3TOOLCHAIN_ONLY: 1
run: |
mkdir $PWD/ps3dev
export PS3DEV=$PWD/ps3dev
export PSL1GHT=$PS3DEV
export PATH=$PATH:$PS3DEV/bin
export PATH=$PATH:$PS3DEV/ppu/bin
export PATH=$PATH:$PS3DEV/spu/bin
./toolchain.sh
- name: Get short SHA
id: slug
run: echo "sha8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> "$GITHUB_OUTPUT"
- name: Compress ps3dev folder
run: |
tar -zcvf ps3dev.tar.gz ps3dev
- uses: actions/upload-artifact@v6
with:
name: ps3dev-${{ steps.slug.outputs.sha8 }}-${{matrix.os}}
path: ps3dev.tar.gz