From 292de930bd6f51c5edd275abb538b8d0f20e42e7 Mon Sep 17 00:00:00 2001 From: TSR Berry <20988865+TSRBerry@users.noreply.github.com> Date: Mon, 24 Oct 2022 11:37:02 +0200 Subject: [PATCH] gha: Add step to retry building with libnx master --- .github/workflows/build.yml | 15 +++++++++++++++ .github/workflows/nightly.yml | 15 +++++++++++++++ .github/workflows/release.yml | 15 +++++++++++++++ 3 files changed, 45 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8ccec6b..e0f388d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,10 @@ jobs: container: image: devkitpro/devkita64:latest + defaults: + run: + shell: bash + steps: - uses: actions/checkout@v3 with: @@ -17,6 +21,17 @@ jobs: - name: Build run: make -j8 + - name: Install libnx master & Retry build + if: ${{ failure() }} + run: | + pushd /tmp + git clone https://github.com/switchbrew/libnx + cd libnx + make -j8 + make install + popd + make -j8 + - name: Upload built files uses: actions/upload-artifact@v3 with: diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 506857d..e42da3c 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -11,6 +11,10 @@ jobs: container: image: devkitpro/devkita64:latest + defaults: + run: + shell: bash + steps: - uses: actions/checkout@v3 with: @@ -26,6 +30,17 @@ jobs: - name: Build run: make -j8 + - name: Install libnx master & Retry build + if: ${{ failure() }} + run: | + pushd /tmp + git clone https://github.com/switchbrew/libnx + cd libnx + make -j8 + make install + popd + make -j8 + - name: Upload built files uses: actions/upload-artifact@v3 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 68b5ea7..e82ba88 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,6 +12,10 @@ jobs: container: image: devkitpro/devkita64:latest + defaults: + run: + shell: bash + steps: - name: Set env run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV @@ -22,6 +26,17 @@ jobs: - name: Build run: make -j8 + + - name: Install libnx master & Retry build + if: ${{ failure() }} + run: | + pushd /tmp + git clone https://github.com/switchbrew/libnx + cd libnx + make -j8 + make install + popd + make -j8 - name: Pack run: |