Skip to content

Commit 19bdb73

Browse files
authored
add macOS intel CI (#136)
1 parent a6115ab commit 19bdb73

2 files changed

Lines changed: 39 additions & 3 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ jobs:
1010
build:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
13+
fail-fast: false
1314
matrix:
14-
os: [ubuntu-latest]
15+
os: [macos-15-intel, ubuntu-latest]
1516

1617
steps:
1718
- uses: actions/checkout@v6
@@ -21,8 +22,31 @@ jobs:
2122
run: |
2223
sudo apt-get update
2324
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
25+
26+
- name: Install macOS requirements
27+
if: matrix.os == 'macos-15-intel'
28+
shell: arch -x86_64 bash -e {0}
29+
env:
30+
HOMEBREW_NO_AUTO_UPDATE: 1
31+
HOMEBREW_NO_INSTALL_CLEANUP: 1
32+
HOMEBREW_NO_ENV_HINTS: 1
33+
run: |
34+
brew install autoconf automake openssl libelf ncurses zlib gmp wget pkg-config texinfo
35+
36+
- name: Runs all the stages in the shell
37+
if: matrix.os == 'ubuntu-latest'
38+
run: |
39+
mkdir $PWD/ps3dev
40+
export PS3DEV=$PWD/ps3dev
41+
export PSL1GHT=$PS3DEV
42+
export PATH=$PATH:$PS3DEV/bin
43+
export PATH=$PATH:$PS3DEV/ppu/bin
44+
export PATH=$PATH:$PS3DEV/spu/bin
45+
./toolchain.sh
2446
2547
- name: Runs all the stages in the shell
48+
if: matrix.os == 'macos-15-intel'
49+
shell: arch -x86_64 bash -e {0}
2650
run: |
2751
mkdir $PWD/ps3dev
2852
export PS3DEV=$PWD/ps3dev
@@ -34,7 +58,7 @@ jobs:
3458
3559
- name: Get short SHA
3660
id: slug
37-
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
61+
run: echo "sha8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> "$GITHUB_OUTPUT"
3862

3963
- name: Compress ps3dev folder
4064
run: |
@@ -43,4 +67,4 @@ jobs:
4367
- uses: actions/upload-artifact@v6
4468
with:
4569
name: ps3dev-${{ steps.slug.outputs.sha8 }}-${{matrix.os}}
46-
path: ps3dev.tar.gz
70+
path: ps3dev.tar.gz

‎patches/gcc-7.2.0-PS3.patch‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,3 +725,15 @@ index bedcf1017..8d6c8feff 100644
725725
powerpc*-*-linux*)
726726
tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-linux t-dfprules rs6000/t-ppc64-fp t-slibgcc-libgcc"
727727
tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000"
728+
diff --git a/zlib/zutil.h b/zlib/zutil.h
729+
--- a/zlib/zutil.h
730+
+++ b/zlib/zutil.h
731+
@@ -130,7 +130,7 @@
732+
# endif
733+
#endif
734+
735+
-#if defined(MACOS) || defined(TARGET_OS_MAC)
736+
+#if defined(MACOS) || (defined(TARGET_OS_MAC) && !defined(__APPLE__))
737+
# define OS_CODE 7
738+
# ifndef Z_SOLO
739+
# if defined(__MWERKS__) && __dest_os != __be_os && __dest_os != __win32_os

0 commit comments

Comments
 (0)