1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-11-26 04:02:11 +00:00

Update rewrite.yml

This commit is contained in:
Pablo Curiel 2023-03-20 19:15:59 +01:00
parent f4e3843950
commit 79a6f5f741

View file

@ -18,11 +18,16 @@ jobs:
container: container:
image: devkitpro/devkita64 image: devkitpro/devkita64
steps: steps:
# Workaround: avoid requesting data from devkitPro servers because they ban most CI/CD scripts.
- name: Update packages - name: Update packages
run: | run: |
sudo -n apt-get update sudo -n apt-get update
sudo -n apt-get upgrade -y patch autoconf automake tar bzip2 diffutils pkgconf fakeroot p7zip-full git sudo -n apt-get upgrade -y patch autoconf automake tar bzip2 diffutils pkgconf fakeroot p7zip-full git
sudo -n dkp-pacman -Syu --needed --noconfirm sudo -n dkp-pacman --noconfirm -U "https://wii.leseratte10.de/devkitPro/switch/switch-libjson-c-0.16-1-any.pkg.tar.xz"
sudo -n dkp-pacman --noconfirm -U "https://wii.leseratte10.de/devkitPro/switch/switch-libpng-1.6.39-1-any.pkg.tar.xz"
sudo -n dkp-pacman --noconfirm -U "https://wii.leseratte10.de/devkitPro/switch/switch-zlib-1.2.13-1-any.pkg.tar.xz"
sudo -n dkp-pacman --noconfirm -U "https://wii.leseratte10.de/devkitPro/other-stuff/dkp-toolchain-vars-1.0.2-1-any.pkg.tar.xz"
sudo -n dkp-pacman --noconfirm -U "https://wii.leseratte10.de/devkitPro/cmake/switch-cmake-1.5.0-1-any.pkg.tar.xz"
- name: Silence all git safe directory warnings - name: Silence all git safe directory warnings
run: git config --global --add safe.directory '*' run: git config --global --add safe.directory '*'
@ -54,17 +59,17 @@ jobs:
- name: Build nxdumptool - name: Build nxdumptool
run: | run: |
cd "$GITHUB_WORKSPACE/nxdumptool" cd "$GITHUB_WORKSPACE/nxdumptool"
export COMMIT=$(git rev-parse --short HEAD) echo "nxdt_commit=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
./build.sh ./build.sh
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: nxdumptool-rewrite_poc_${{ env.COMMIT }}.7z name: nxdumptool-rewrite_poc_${{ env.nxdt_commit }}.7z
path: nxdumptool-rewrite_poc_${{ env.COMMIT }}.7z path: nxdumptool/nxdumptool-rewrite_poc_${{ env.nxdt_commit }}.7z
if-no-files-found: error if-no-files-found: error
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: nxdumptool-rewrite_poc_${{ env.COMMIT }}-Debug_ELFs.7z name: nxdumptool-rewrite_poc_${{ env.nxdt_commit }}-Debug_ELFs.7z
path: nxdumptool-rewrite_poc_${{ env.COMMIT }}-Debug_ELFs.7z path: nxdumptool/nxdumptool-rewrite_poc_${{ env.nxdt_commit }}-Debug_ELFs.7z
if-no-files-found: error if-no-files-found: error