-
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
21f16ef
commit 9cdbbf0
Showing
1 changed file
with
30 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,20 +29,28 @@ jobs: | |
shell: bash | ||
|
||
steps: | ||
- name: Clone nxdumptool repository | ||
- name: Set environment variables | ||
run: | | ||
git clone --recurse-submodules https://github.com/DarkMatterCore/nxdumptool . | ||
echo "nxdt_commit=${GITHUB_SHA::7}" >> $GITHUB_ENV | ||
echo "need_node=$(command -v node >/dev/null 2>&1 && echo 0 || echo 1)" >> $GITHUB_ENV | ||
- name: Set environment variables | ||
# Taken from https://github.com/nektos/act/issues/973. Needed when running this workflow locally using Docker + act. | ||
- name: Install node (ccache requirement) | ||
if: ${{ env.need_node == '1' }} | ||
run: | | ||
echo "NXDT_COMMIT=${GITHUB_SHA::7}" >> $GITHUB_ENV | ||
curl -sS https://webi.sh/node | sh | ||
echo ~/.local/opt/node/bin >> $GITHUB_PATH | ||
- name: Set workspace permissions | ||
run: chmod 777 -R "$GITHUB_WORKSPACE" | ||
- name: Clone nxdumptool repository | ||
run: | | ||
git clone --recurse-submodules https://github.com/DarkMatterCore/nxdumptool . | ||
- name: Setup ccache | ||
uses: hendrikmuhs/[email protected] | ||
|
||
- name: Set workspace permissions | ||
run: chmod 777 -R "$GITHUB_WORKSPACE" | ||
|
||
# ccache invocation is handled in the build script. | ||
- name: Build nxdumptool-rewrite PoC binary | ||
id: build | ||
|
@@ -62,33 +70,33 @@ jobs: | |
popd | ||
./build.sh --noconfirm | ||
#- name: Build nxdumptool-rewrite GUI binary | ||
# run: | | ||
# make -j8 PREFIX="ccache aarch64-none-elf-" | ||
- name: Build nxdumptool-rewrite GUI binary | ||
run: | | ||
make -j8 PREFIX="ccache aarch64-none-elf-" | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: nxdt_rw_poc-${{ env.NXDT_COMMIT }}.nro | ||
name: nxdt_rw_poc-${{ env.nxdt_commit }}.nro | ||
path: code_templates/tmp/nxdt_rw_poc.nro | ||
if-no-files-found: error | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: nxdt_rw_poc-${{ env.NXDT_COMMIT }}.elf | ||
name: nxdt_rw_poc-${{ env.nxdt_commit }}.elf | ||
path: code_templates/tmp/nxdt_rw_poc.elf | ||
if-no-files-found: error | ||
|
||
#- uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: nxdumptool-rewrite-${{ env.NXDT_COMMIT }}-WIP_UI.nro | ||
# path: nxdumptool.nro | ||
# if-no-files-found: error | ||
|
||
#- uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: nxdumptool-rewrite-${{ env.NXDT_COMMIT }}-WIP_UI.elf | ||
# path: nxdumptool.elf | ||
# if-no-files-found: error | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: nxdumptool-rewrite-${{ env.nxdt_commit }}-WIP_UI.nro | ||
path: nxdumptool.nro | ||
if-no-files-found: error | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: nxdumptool-rewrite-${{ env.nxdt_commit }}-WIP_UI.elf | ||
path: nxdumptool.elf | ||
if-no-files-found: error | ||
|
||
- name: Upload artifact to prerelease | ||
uses: ncipollo/release-action@v1 | ||
|