2021-11-02 11:56:56 +01:00
|
|
|
name: macOS build
|
2021-11-02 11:54:09 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-11-02 11:56:56 +01:00
|
|
|
branches: [ main ]
|
2021-11-02 11:54:09 +01:00
|
|
|
|
|
|
|
jobs:
|
2021-11-02 11:56:56 +01:00
|
|
|
build:
|
2021-11-02 11:54:09 +01:00
|
|
|
runs-on: macOS-latest
|
|
|
|
|
|
|
|
steps:
|
2021-11-02 18:46:36 +01:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Fetch submodules
|
|
|
|
run: git submodule update --init --recursive
|
2021-11-02 18:08:04 +01:00
|
|
|
- name: Install tinyxml2
|
|
|
|
run : |
|
|
|
|
brew update --verbose
|
|
|
|
brew install tinyxml2
|
2021-11-03 11:57:37 +01:00
|
|
|
- name: Install mipsel binutils
|
2021-11-02 18:46:36 +01:00
|
|
|
run: |
|
|
|
|
wget https://raw.githubusercontent.com/grumpycoders/pcsx-redux/a899d09d81cf602ef48e51cda09a6c62638fa5c5/tools/macos-mips/mipsel-none-elf-binutils.rb -O ${{github.workspace}}/mipsel-none-elf-binutils.rb
|
2021-11-02 20:36:00 +01:00
|
|
|
brew install ${{github.workspace}}/mipsel-none-elf-binutils.rb --debug
|
2021-11-03 11:57:37 +01:00
|
|
|
- name: Upload mipsel-binutils
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: mipsel-none-elf-binutils-macos
|
|
|
|
path: /usr/local/Cellar/mipsel-none-elf-binutils/
|
|
|
|
- name: Install mipsel gcc
|
|
|
|
run: |
|
|
|
|
wget https://raw.githubusercontent.com/grumpycoders/pcsx-redux/a899d09d81cf602ef48e51cda09a6c62638fa5c5/tools/macos-mips/mipsel-none-elf-gcc.rb -O ${{github.workspace}}/mipsel-none-elf-gcc.rb
|
2021-11-02 20:36:00 +01:00
|
|
|
brew install ${{github.workspace}}/mipsel-none-elf-gcc.rb --debug
|
2021-11-03 11:57:37 +01:00
|
|
|
- name: Upload mipsel-gcc
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: mipsel-none-elf-gcc-macos
|
|
|
|
path: /usr/local/Cellar/mipsel-none-elf-gcc/
|
2021-11-02 11:56:56 +01:00
|
|
|
- name: Build mkpsxiso
|
|
|
|
run: |
|
2021-11-02 13:21:39 +01:00
|
|
|
wget https://github.com/Lameguy64/mkpsxiso/archive/refs/heads/master.zip -O ${{github.workspace}}/master.zip
|
2021-11-02 13:39:16 +01:00
|
|
|
7z x ${{github.workspace}}/master.zip -o${{github.workspace}}
|
2021-11-02 17:58:55 +01:00
|
|
|
awk 'n>=4 { print a[n%7] } { a[n%7]=$0; n=n+1 }' ${{github.workspace}}/mkpsxiso-master/CMakeLists.txt >> ${{github.workspace}}/mkpsxiso-master/CMakeLists.txt.tmp
|
|
|
|
mv -f ${{github.workspace}}/mkpsxiso-master/CMakeLists.txt.tmp ${{github.workspace}}/mkpsxiso-master/CMakeLists.txt
|
2021-11-02 13:39:16 +01:00
|
|
|
mkdir ${{github.workspace}}/mkpsxiso-master/build
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -S ${{github.workspace}}/mkpsxiso-master -B ${{github.workspace}}/mkpsxiso-master/build
|
|
|
|
cmake --build ${{github.workspace}}/mkpsxiso-master/build
|
|
|
|
echo "${{github.workspace}}/mkpsxiso-master/build" >> $GITHUB_PATH
|
2021-11-03 11:57:37 +01:00
|
|
|
- name: Upload mkpsxiso-macos
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: mkpsxiso-macos
|
|
|
|
path: ${{github.workspace}}/mkpsxiso-master/build
|
2021-11-02 18:46:36 +01:00
|
|
|
- name: Get converted libs
|
|
|
|
run: |
|
|
|
|
wget http://psx.arthus.net/sdk/Psy-Q/psyq-4.7-converted-full.7z
|
|
|
|
7z x psyq-4.7-converted-full.7z -o./psyq
|
|
|
|
- name: Make all
|
|
|
|
run: make all
|