Skip to content

Commit

Permalink
gha: Add step to retry building with libnx master
Browse files Browse the repository at this point in the history
  • Loading branch information
TSRBerry committed Oct 24, 2022
1 parent 90a3666 commit 292de93
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:
container:
image: devkitpro/devkita64:latest

defaults:
run:
shell: bash

steps:
- uses: actions/checkout@v3
with:
Expand All @@ -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:
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ jobs:
container:
image: devkitpro/devkita64:latest

defaults:
run:
shell: bash

steps:
- uses: actions/checkout@v3
with:
Expand All @@ -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:
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down

0 comments on commit 292de93

Please sign in to comment.