Merge branch 'main' of github.com:ABelliqueux/nolibgs_hello_worlds

This commit is contained in:
ABelliqueux 2021-11-11 16:33:09 +01:00
commit 8e161f7f6d
4 changed files with 138 additions and 2 deletions

View File

@ -0,0 +1,40 @@
name: Linux archive build
on:
release:
types: [edited]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get repo archive
run: |
wget https://github.com/ABelliqueux/nolibgs_hello_worlds/releases/download/v0.1/nolibgs_hello_worlds.zip
7z x nolibgs_hello_worlds.zip -o${{github.workspace}}
- name: Install mipsel toolchain
run: |
sudo apt-get update
sudo apt-get install gcc-mipsel-linux-gnu g++-mipsel-linux-gnu binutils-mipsel-linux-gnu p7zip cmake build-essential libtinyxml2-6 libtinyxml2-dev
- name: Clone mkpsxiso
uses: GuillaumeFalourd/clone-github-repo-action@v1
with:
owner: 'Lameguy64'
repository: 'mkpsxiso'
- name: Build mkpsxiso
run: |
sudo chown -R runner:docker ${{github.workspace}}/mkpsxiso/
mkdir ${{github.workspace}}/mkpsxiso/build
cmake -DCMAKE_BUILD_TYPE=Release -S ${{github.workspace}}/mkpsxiso/ -B ${{github.workspace}}/mkpsxiso/build
cmake --build ${{github.workspace}}/mkpsxiso/build
echo "${{github.workspace}}/mkpsxiso/build" >> $GITHUB_PATH
- 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${{github.workspace}}/nolibgs_hello_worlds/psyq
- name: Make all
run: |
cd ${{github.workspace}}/nolibgs_hello_worlds
make all

View File

@ -10,13 +10,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install mipsel toolchain
run: |
sudo apt-get update
sudo apt-get install gcc-mipsel-linux-gnu g++-mipsel-linux-gnu binutils-mipsel-linux-gnu p7zip
- uses: actions/checkout@v2
sudo apt-get install gcc-mipsel-linux-gnu g++-mipsel-linux-gnu binutils-mipsel-linux-gnu p7zip cmake build-essential libtinyxml2-6 libtinyxml2-dev
- name: Fetch submodules
run: git submodule update --init --recursive
- name: Clone mkpsxiso
uses: GuillaumeFalourd/clone-github-repo-action@v1
with:
owner: 'Lameguy64'
repository: 'mkpsxiso'
- name: Build mkpsxiso
run: |
sudo chown -R runner:docker ${{github.workspace}}/mkpsxiso/
mkdir ${{github.workspace}}/mkpsxiso/build
cmake -DCMAKE_BUILD_TYPE=Release -S ${{github.workspace}}/mkpsxiso/ -B ${{github.workspace}}/mkpsxiso/build
cmake --build ${{github.workspace}}/mkpsxiso/build
echo "${{github.workspace}}/mkpsxiso/build" >> $GITHUB_PATH
- name: Get converted libs
run: |
wget http://psx.arthus.net/sdk/Psy-Q/psyq-4.7-converted-full.7z

57
.github/workflows/macos-build.yml vendored Normal file
View File

@ -0,0 +1,57 @@
name: macOS build
on:
push:
branches: [ main ]
jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Fetch submodules
run: git submodule update --init --recursive
- name: Install tinyxml2
run : |
brew update --verbose
brew install tinyxml2
- name: Install mipsel binutils
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
brew install ${{github.workspace}}/mipsel-none-elf-binutils.rb --debug
- 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
brew install ${{github.workspace}}/mipsel-none-elf-gcc.rb --debug
- name: Upload mipsel-gcc
uses: actions/upload-artifact@v2
with:
name: mipsel-none-elf-gcc-macos
path: /usr/local/Cellar/mipsel-none-elf-gcc/
- name: Build mkpsxiso
run: |
wget https://github.com/Lameguy64/mkpsxiso/archive/refs/heads/master.zip -O ${{github.workspace}}/master.zip
7z x ${{github.workspace}}/master.zip -o${{github.workspace}}
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
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
- name: Upload mkpsxiso-macos
uses: actions/upload-artifact@v2
with:
name: mkpsxiso-macos
path: ${{github.workspace}}/mkpsxiso-master/build
- 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

27
.github/workflows/windows-build.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Windows build
on:
push:
branches: [ main ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Fetch submodules
run: git submodule update --init --recursive
- name: Get prebuilt stuff
run: |
C:\msys64\usr\bin\wget.exe http://static.grumpycoder.net/pixel/mips/g++-mipsel-none-elf-11.2.0.zip
C:\msys64\usr\bin\wget.exe http://lameguy64.github.io/mkpsxiso/mkpsxiso-1.20.zip
C:\msys64\usr\bin\wget.exe http://psx.arthus.net/sdk/Psy-Q/psyq-4.7-converted-full.7z
7z.exe x g++-mipsel-none-elf-11.2.0.zip -o"$GITHUB_WORKSPACE\mipsel"
7z.exe x mkpsxiso-1.20.zip -o"$GITHUB_WORKSPACE\mkpsxiso"
7z.exe x psyq-4.7-converted-full.7z -o"D:\a\nolibgs_hello_worlds\nolibgs_hello_worlds\psyq"
echo "$GITHUB_WORKSPACE/mipsel/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "$GITHUB_WORKSPACE/mkpsxiso" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo $GITHUB_PATH
- name: Make all
run: make all