Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 34 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
os: [macos-15-intel, ubuntu-latest]

steps:
- uses: actions/checkout@v6
Expand All @@ -23,15 +24,27 @@ jobs:
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 requirements
if: matrix.os == 'macos-latest'
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: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo >> /Users/runner/.bash_profile
echo 'eval "$(/usr/local/bin/brew shellenv bash)"' >> /Users/runner/.bash_profile
if ! command -v brew >/dev/null 2>&1; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi

eval "$(/usr/local/bin/brew shellenv bash)"

brew install autoconf automake openssl libelf ncurses zlib gmp wget pkg-config texinfo

if /Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 -c "import distutils" >/dev/null 2>&1; then
echo "Using preinstalled Python 3.11 framework"
else
brew list python@3.11 >/dev/null 2>&1 || brew install python@3.11 || true
fi

- name: Runs all the stages in the shell
if: matrix.os == 'ubuntu-latest'
run: |
Expand All @@ -44,9 +57,23 @@ jobs:
./toolchain.sh

- name: Runs all the stages in the shell
if: matrix.os == 'macos-latest'
if: matrix.os == 'macos-15-intel'
shell: arch -x86_64 bash -e {0}
run: |
eval "$(/usr/local/bin/brew shellenv bash)"
if /Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 -c "import distutils" >/dev/null 2>&1; then
PY311_PREFIX="/Library/Frameworks/Python.framework/Versions/3.11"
else
PY311_PREFIX="$(brew --prefix python@3.11)"
fi

mkdir -p "$PWD/python-shims"
ln -sf "$PY311_PREFIX/bin/python3.11" "$PWD/python-shims/python"
ln -sf "$PY311_PREFIX/bin/python3.11" "$PWD/python-shims/python3"
ln -sf "$PY311_PREFIX/bin/python3.11-config" "$PWD/python-shims/python-config"
ln -sf "$PY311_PREFIX/bin/python3.11-config" "$PWD/python-shims/python3-config"
export PATH="$PWD/python-shims:$PY311_PREFIX/bin:$PATH"

mkdir $PWD/ps3dev
export PS3DEV=$PWD/ps3dev
export PSL1GHT=$PS3DEV
Expand All @@ -57,7 +84,7 @@ jobs:

- name: Get short SHA
id: slug
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
run: echo "sha8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> "$GITHUB_OUTPUT"

- name: Compress ps3dev folder
run: |
Expand Down
Loading
Loading