From c083d1de85ce6f43d7fcf60f90c270b177a3d10c Mon Sep 17 00:00:00 2001 From: ABelliqueux Date: Sun, 28 Nov 2021 20:09:51 +0100 Subject: [PATCH] Add build action --- .github/workflows/linux-build.yml | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/linux-build.yml diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml new file mode 100644 index 0000000..b52f01b --- /dev/null +++ b/.github/workflows/linux-build.yml @@ -0,0 +1,44 @@ +name: Linux build + +on: + push: + branches: [ main ] + +jobs: + build: + + 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 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 + 7z x psyq-4.7-converted-full.7z -o./psyq + - name: Make all + run: make all + - name: Upload bin/cue + uses: actions/upload-artifact@v2 + with: + name: 3dcam-latest + path: | + ${{github.workspace}}/3dcam-headers/3dcam.bin + ${{github.workspace}}/3dcam-headers/3dcam.cue