Update macos-build.yml
This commit is contained in:
parent
9b968f1a27
commit
e4e6d4c550
75
.github/workflows/macos-build.yml
vendored
75
.github/workflows/macos-build.yml
vendored
@ -1,50 +1,41 @@
|
|||||||
name: macOS toolchain CI
|
name: macOS build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: [ main ]
|
||||||
- main
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
macos-build-and-test-toolchain:
|
build:
|
||||||
|
|
||||||
runs-on: macOS-latest
|
runs-on: macOS-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Fetch submodules
|
- name: Fetch submodules
|
||||||
run: git submodule update --init --recursive
|
run: git submodule update --init --recursive
|
||||||
|
- name: Install cmake
|
||||||
|
run : |
|
||||||
steps:
|
brew install tinyxml2
|
||||||
- uses: actions/checkout@v2
|
- name: Install mipsel toolchain
|
||||||
- name: Fetch submodules
|
run: |
|
||||||
run: git submodule update --init --recursive
|
wget https://github.com/grumpycoders/pcsx-redux/blob/a899d09d81cf602ef48e51cda09a6c62638fa5c5/tools/macos-mips/mipsel-none-elf-binutils.rb -O ${{github.workspace}}/mipsel-none-elf-binutils.rb
|
||||||
- name: Install cmake
|
wget https://github.com/grumpycoders/pcsx-redux/blob/a899d09d81cf602ef48e51cda09a6c62638fa5c5/tools/macos-mips/mipsel-none-elf-gcc.rb -O ${{github.workspace}}/mipsel-none-elf-gcc.rb
|
||||||
run : |
|
brew install ${{github.workspace}}/mipsel-none-elf-binutils.rb --debug
|
||||||
brew install tinyxml2
|
brew install ${{github.workspace}}/mipsel-none-elf-gcc.rb --debug
|
||||||
- name: Install mipsel toolchain
|
- name: Clone mkpsxiso
|
||||||
run: |
|
uses: GuillaumeFalourd/clone-github-repo-action@v1
|
||||||
wget https://github.com/grumpycoders/pcsx-redux/blob/a899d09d81cf602ef48e51cda09a6c62638fa5c5/tools/macos-mips/mipsel-none-elf-binutils.rb -O ${{github.workspace}}/mipsel-none-elf-binutils.rb
|
with:
|
||||||
wget https://github.com/grumpycoders/pcsx-redux/blob/a899d09d81cf602ef48e51cda09a6c62638fa5c5/tools/macos-mips/mipsel-none-elf-gcc.rb -O ${{github.workspace}}/mipsel-none-elf-gcc.rb
|
owner: 'Lameguy64'
|
||||||
brew install ${{github.workspace}}/mipsel-none-elf-binutils.rb --debug
|
repository: 'mkpsxiso'
|
||||||
brew install ${{github.workspace}}/mipsel-none-elf-gcc.rb --debug
|
- name: Build mkpsxiso
|
||||||
- name: Clone mkpsxiso
|
run: |
|
||||||
uses: GuillaumeFalourd/clone-github-repo-action@v1
|
sudo chown -R runner:docker ${{github.workspace}}/mkpsxiso/
|
||||||
with:
|
mkdir ${{github.workspace}}/mkpsxiso/build
|
||||||
owner: 'Lameguy64'
|
cmake -DCMAKE_BUILD_TYPE=Release -S ${{github.workspace}}/mkpsxiso/ -B ${{github.workspace}}/mkpsxiso/build
|
||||||
repository: 'mkpsxiso'
|
cmake --build ${{github.workspace}}/mkpsxiso/build
|
||||||
- name: Build mkpsxiso
|
echo "${{github.workspace}}/mkpsxiso/build" >> $GITHUB_PATH
|
||||||
run: |
|
- name: Get converted libs
|
||||||
sudo chown -R runner:docker ${{github.workspace}}/mkpsxiso/
|
run: |
|
||||||
mkdir ${{github.workspace}}/mkpsxiso/build
|
wget http://psx.arthus.net/sdk/Psy-Q/psyq-4.7-converted-full.7z
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -S ${{github.workspace}}/mkpsxiso/ -B ${{github.workspace}}/mkpsxiso/build
|
7z x psyq-4.7-converted-full.7z -o./psyq
|
||||||
cmake --build ${{github.workspace}}/mkpsxiso/build
|
- name: Make all
|
||||||
echo "${{github.workspace}}/mkpsxiso/build" >> $GITHUB_PATH
|
run: make all
|
||||||
- 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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user