From ef0d19d7981e47806ba604f8c086b8ee8c34e196 Mon Sep 17 00:00:00 2001 From: Damian Parrino Date: Wed, 10 Jun 2026 10:39:59 -0300 Subject: [PATCH] build toolchain only if env var is set, - skip psl1ght - skip ps3libraries --- .github/workflows/build.yml | 7 ++++++- scripts/008-psl1ght.sh | 6 ++++++ scripts/009-ps3libraries.sh | 6 ++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eae3d223d..30dc55f3d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,6 +35,9 @@ jobs: - name: Runs all the stages in the shell if: matrix.os == 'ubuntu-latest' + shell: bash -e {0} + env: + BUILD_PS3TOOLCHAIN_ONLY: 1 run: | mkdir $PWD/ps3dev export PS3DEV=$PWD/ps3dev @@ -47,6 +50,8 @@ jobs: - name: Runs all the stages in the shell if: matrix.os == 'macos-15-intel' shell: arch -x86_64 bash -e {0} + env: + BUILD_PS3TOOLCHAIN_ONLY: 1 run: | mkdir $PWD/ps3dev export PS3DEV=$PWD/ps3dev @@ -67,4 +72,4 @@ jobs: - uses: actions/upload-artifact@v6 with: name: ps3dev-${{ steps.slug.outputs.sha8 }}-${{matrix.os}} - path: ps3dev.tar.gz \ No newline at end of file + path: ps3dev.tar.gz diff --git a/scripts/008-psl1ght.sh b/scripts/008-psl1ght.sh index 0f66d90dc..56cb1167d 100755 --- a/scripts/008-psl1ght.sh +++ b/scripts/008-psl1ght.sh @@ -4,6 +4,12 @@ ## Download the source code. wget --no-check-certificate https://github.com/ps3dev/PSL1GHT/tarball/master -O psl1ght.tar.gz +## Check if we want to skip this step +if [[ -n "$BUILD_PS3TOOLCHAIN_ONLY" ]]; then + echo "PS3 Toolchain only set. Skipping..." + exit 0 +fi + ## Unpack the source code. rm -Rf psl1ght && mkdir psl1ght && tar --strip-components=1 --directory=psl1ght -xvzf psl1ght.tar.gz diff --git a/scripts/009-ps3libraries.sh b/scripts/009-ps3libraries.sh index 67fd2adc7..c0f713a6e 100755 --- a/scripts/009-ps3libraries.sh +++ b/scripts/009-ps3libraries.sh @@ -4,6 +4,12 @@ ## Download the source code. wget --no-check-certificate https://github.com/ps3dev/ps3libraries/tarball/master -O ps3libraries.tar.gz +## Check if we want to skip this step +if [[ -n "$BUILD_PS3TOOLCHAIN_ONLY" ]]; then + echo "PS3 Toolchain only set. Skipping..." + exit 0 +fi + ## Unpack the source code. rm -Rf ps3libraries && mkdir ps3libraries && tar --strip-components=1 --directory=ps3libraries -xvzf ps3libraries.tar.gz && cd ps3libraries