nolibgs_hello_worlds/.github/workflows/linux-build.yml

39 lines
1.2 KiB
YAML
Raw Normal View History

2021-11-01 16:38:57 +01:00
name: Linux build
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
2021-11-01 18:32:18 +01:00
- uses: actions/checkout@v2
2021-11-01 16:38:57 +01:00
- name: Install mipsel toolchain
2021-11-01 16:41:12 +01:00
run: |
sudo apt-get update
2021-11-01 18:17:03 +01:00
sudo apt-get install gcc-mipsel-linux-gnu g++-mipsel-linux-gnu binutils-mipsel-linux-gnu p7zip cmake build-essential libtinyxml2-6 libtinyxml-dev
2021-11-01 16:44:32 +01:00
- name: Fetch submodules
run: git submodule update --init --recursive
2021-11-01 18:17:03 +01:00
- name: Clone mkpsxiso
uses: GuillaumeFalourd/clone-github-repo-action@v1
with:
owner: 'Lameguy64'
repository: 'mkpsxiso'
- name: Build mkpsxiso
run: |
2021-11-01 18:29:49 +01:00
sudo chown -R runner:docker ${{github.workspace}}/mkpsxiso/
2021-11-01 18:32:18 +01:00
mkdir ${{github.workspace}}/mkpsxiso/build
2021-11-01 18:34:19 +01:00
cmake -DCMAKE_BUILD_TYPE=Release -S ${{github.workspace}}/mkpsxiso/ -B ${{github.workspace}}/mkpsxiso/build
2021-11-01 18:17:03 +01:00
cmake --build ${{github.workspace}}/mkpsxiso/build
echo "${{github.workspace}}/mkpsxiso/build" >> $GITHUB_PATH
2021-11-01 16:38:57 +01:00
- name: Get converted libs
2021-11-01 16:41:12 +01:00
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
2021-11-01 17:31:52 +01:00
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
2021-11-01 16:44:32 +01:00
- name: Make all
2021-11-01 16:38:57 +01:00
run: make all