From 9abd8f3a3ac4ac151877862f52f1d347b14452d4 Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Sat, 6 Jul 2024 20:04:13 +0200 Subject: [PATCH] Attempt to fix CI jobs --- .github/workflows/Android.yml | 75 +++++++++++++------------- .github/workflows/DOS-DJGPP.yml | 9 ++-- .github/workflows/Emscripten.yml | 9 ++-- .github/workflows/GameCube.yml | 9 ++-- .github/workflows/Linux.yml | 3 ++ .github/workflows/MSVC.yml | 3 ++ .github/workflows/MacOS.yml | 3 ++ .github/workflows/Miyoo.yml | 9 ++-- .github/workflows/PS2.yml | 13 +++-- .github/workflows/PS4-ORBIS.yml | 9 ++-- .github/workflows/PSP.yml | 11 ++-- .github/workflows/PSVita.yml | 11 ++-- .github/workflows/RS90.yml | 9 ++-- .github/workflows/RetroFW.yml | 9 ++-- .github/workflows/SourceRelease.yml | 3 ++ .github/workflows/Switch-libnx.yml | 9 ++-- .github/workflows/Wii.yml | 11 ++-- .github/workflows/WiiU.yml | 11 ++-- .github/workflows/Windows-i686-MXE.yml | 9 ++-- .github/workflows/Windows-x64-MXE.yml | 9 ++-- .github/workflows/retroarch.yml | 3 ++ .github/workflows/webOS.yml | 3 ++ 22 files changed, 153 insertions(+), 87 deletions(-) diff --git a/.github/workflows/Android.yml b/.github/workflows/Android.yml index 5ef7e910a4..ae960616a5 100644 --- a/.github/workflows/Android.yml +++ b/.github/workflows/Android.yml @@ -1,36 +1,39 @@ -name: CI Android - -on: - push: - pull_request: - workflow_dispatch: - repository_dispatch: - types: [run_build] - - -permissions: - contents: read - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: Compile RA - run: | - cd pkg/android/phoenix - ./gradlew assembleDebug - find . -iname "*.apk" -exec ls -l "{}" \; - - - name: Get short SHA - id: slug - run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" - - - uses: actions/upload-artifact@v3 - with: - name: retroarch-android-${{ steps.slug.outputs.sha8 }} - path: | - pkg/android/phoenix/build/outputs/apk/normal/debug/phoenix-normal-debug.apk - pkg/android/phoenix/build/outputs/apk/aarch64/debug/phoenix-aarch64-debug.apk +name: CI Android + +on: + push: + pull_request: + workflow_dispatch: + repository_dispatch: + types: [run_build] + + +permissions: + contents: read + +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Compile RA + run: | + cd pkg/android/phoenix + ./gradlew assembleDebug + find . -iname "*.apk" -exec ls -l "{}" \; + + - name: Get short SHA + id: slug + run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" + + - uses: actions/upload-artifact@v3 + with: + name: retroarch-android-${{ steps.slug.outputs.sha8 }} + path: | + pkg/android/phoenix/build/outputs/apk/normal/debug/phoenix-normal-debug.apk + pkg/android/phoenix/build/outputs/apk/aarch64/debug/phoenix-aarch64-debug.apk diff --git a/.github/workflows/DOS-DJGPP.yml b/.github/workflows/DOS-DJGPP.yml index 5e4f21a96a..d144a2f108 100644 --- a/.github/workflows/DOS-DJGPP.yml +++ b/.github/workflows/DOS-DJGPP.yml @@ -9,16 +9,19 @@ on: permissions: contents: read +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: build: runs-on: ubuntu-latest - container: + container: image: git.libretro.com:5050/libretro-infrastructure/libretro-djgpp-build-container:latest options: --user root steps: - uses: actions/checkout@v3 - + - name: Compile RA run: | make -f Makefile.dos -j$(getconf _NPROCESSORS_ONLN) clean @@ -27,7 +30,7 @@ jobs: - name: Get short SHA id: slug run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" - + - uses: actions/upload-artifact@v3 with: name: RA-DOS-dummy-${{ steps.slug.outputs.sha8 }} diff --git a/.github/workflows/Emscripten.yml b/.github/workflows/Emscripten.yml index 737533141e..d97f8ba3ab 100644 --- a/.github/workflows/Emscripten.yml +++ b/.github/workflows/Emscripten.yml @@ -9,16 +9,19 @@ on: permissions: contents: read +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: build: runs-on: ubuntu-latest - container: + container: image: git.libretro.com:5050/libretro-infrastructure/libretro-build-emscripten:latest options: --user root steps: - uses: actions/checkout@v3 - + - name: Compile RA run: | emmake make -f Makefile.emscripten -j$(getconf _NPROCESSORS_ONLN) clean @@ -27,7 +30,7 @@ jobs: - name: Get short SHA id: slug run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" - + - uses: actions/upload-artifact@v3 with: name: RA-Emscripten-dummy-${{ steps.slug.outputs.sha8 }} diff --git a/.github/workflows/GameCube.yml b/.github/workflows/GameCube.yml index 215bc7b2b9..0537f44b07 100644 --- a/.github/workflows/GameCube.yml +++ b/.github/workflows/GameCube.yml @@ -9,16 +9,19 @@ on: permissions: contents: read +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: build: runs-on: ubuntu-latest - container: + container: image: git.libretro.com:5050/libretro-infrastructure/libretro-build-devkitpro:latest options: --user root steps: - uses: actions/checkout@v3 - + - name: Compile RA run: | make -f Makefile.ngc -j$(getconf _NPROCESSORS_ONLN) clean @@ -26,7 +29,7 @@ jobs: - name: Get short SHA id: slug run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" - + - uses: actions/upload-artifact@v3 with: name: RA-GameCube-dummy-${{ steps.slug.outputs.sha8 }} diff --git a/.github/workflows/Linux.yml b/.github/workflows/Linux.yml index b8e9c6413b..628c280ffc 100644 --- a/.github/workflows/Linux.yml +++ b/.github/workflows/Linux.yml @@ -9,6 +9,9 @@ on: permissions: contents: read +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/MSVC.yml b/.github/workflows/MSVC.yml index cbda710afd..478205756b 100644 --- a/.github/workflows/MSVC.yml +++ b/.github/workflows/MSVC.yml @@ -9,6 +9,9 @@ on: permissions: contents: read +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + # These jobs run smoke tests to ensure that MSVC-specific builds work properly. jobs: diff --git a/.github/workflows/MacOS.yml b/.github/workflows/MacOS.yml index e757705b38..37e6026ee7 100644 --- a/.github/workflows/MacOS.yml +++ b/.github/workflows/MacOS.yml @@ -7,6 +7,9 @@ on: permissions: contents: read +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: build: runs-on: macos-latest diff --git a/.github/workflows/Miyoo.yml b/.github/workflows/Miyoo.yml index c74aed5384..2a7556ba1a 100644 --- a/.github/workflows/Miyoo.yml +++ b/.github/workflows/Miyoo.yml @@ -9,16 +9,19 @@ on: permissions: contents: read +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: build: runs-on: ubuntu-latest - container: + container: image: git.libretro.com:5050/libretro-infrastructure/libretro-build-dingux:latest options: --user root steps: - uses: actions/checkout@v3 - + - name: Compile RA run: | make -j$(getconf _NPROCESSORS_ONLN) -f Makefile.miyoo clean @@ -27,7 +30,7 @@ jobs: - name: Get short SHA id: slug run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" - + - uses: actions/upload-artifact@v3 with: name: retroarch_miyoo_arm32${{ steps.slug.outputs.sha8 }} diff --git a/.github/workflows/PS2.yml b/.github/workflows/PS2.yml index c825a59584..eba2153e8a 100644 --- a/.github/workflows/PS2.yml +++ b/.github/workflows/PS2.yml @@ -9,21 +9,24 @@ on: permissions: contents: read +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: build: runs-on: ubuntu-latest - container: + container: image: git.libretro.com:5050/libretro-infrastructure/libretro-build-ps2:latest options: --user root steps: - uses: actions/checkout@v3 - + - name: Compile Salamander run: | make -f Makefile.ps2.salamander -j$(getconf _NPROCESSORS_ONLN) clean make -f Makefile.ps2.salamander -j$(getconf _NPROCESSORS_ONLN) release - + - name: Compile RA run: | make -f Makefile.ps2 -j$(getconf _NPROCESSORS_ONLN) clean @@ -32,10 +35,10 @@ jobs: - name: Get short SHA id: slug run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" - + - uses: actions/upload-artifact@v3 with: name: RA-PS2-dummy-${{ steps.slug.outputs.sha8 }} path: | raboot.elf - retroarchps2.elf \ No newline at end of file + retroarchps2.elf diff --git a/.github/workflows/PS4-ORBIS.yml b/.github/workflows/PS4-ORBIS.yml index 5460503120..60773e9bc0 100644 --- a/.github/workflows/PS4-ORBIS.yml +++ b/.github/workflows/PS4-ORBIS.yml @@ -9,10 +9,13 @@ on: permissions: contents: read +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: build: runs-on: ubuntu-latest - container: + container: image: git.libretro.com:5050/libretro-infrastructure/libretro-build-orbis:latest options: --user root @@ -24,7 +27,7 @@ jobs: apk add ncurses-dev make bash python2 apk add libintl icu-dev wget wget https://dot.net/v1/dotnet-install.sh && chmod 755 dotnet-install.sh && ./dotnet-install.sh -c 3.0 --install-dir ~/cli - + - name: Compile RA run: | export PATH=~/cli:$PATH # .net cli @@ -33,7 +36,7 @@ jobs: - name: Get short SHA id: slug run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" - + - uses: actions/upload-artifact@v3 with: name: bin-${{ steps.slug.outputs.sha8 }} diff --git a/.github/workflows/PSP.yml b/.github/workflows/PSP.yml index 7bc66566c1..d1b3a9b06a 100644 --- a/.github/workflows/PSP.yml +++ b/.github/workflows/PSP.yml @@ -9,16 +9,19 @@ on: permissions: contents: read +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: build: runs-on: ubuntu-latest - container: + container: image: git.libretro.com:5050/libretro-infrastructure/libretro-build-psp:latest options: --user root steps: - uses: actions/checkout@v3 - + - name: Compile bootstrap run: | cd bootstrap/psp1/kernel_functions_prx @@ -29,7 +32,7 @@ jobs: run: | make -f Makefile.psp1.salamander -j$(getconf _NPROCESSORS_ONLN) clean make -f Makefile.psp1.salamander -j$(getconf _NPROCESSORS_ONLN) - + - name: Compile RA run: | make -f Makefile.psp1 -j$(getconf _NPROCESSORS_ONLN) clean @@ -38,7 +41,7 @@ jobs: - name: Get short SHA id: slug run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" - + - uses: actions/upload-artifact@v3 with: name: RA-PSP-dummy-${{ steps.slug.outputs.sha8 }} diff --git a/.github/workflows/PSVita.yml b/.github/workflows/PSVita.yml index 7f8e2ae8e1..9be7c3dbfe 100644 --- a/.github/workflows/PSVita.yml +++ b/.github/workflows/PSVita.yml @@ -9,21 +9,24 @@ on: permissions: contents: read +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: build: runs-on: ubuntu-latest - container: + container: image: git.libretro.com:5050/libretro-infrastructure/libretro-build-vita:latest options: --user root steps: - uses: actions/checkout@v3 - + - name: Compile Salamander run: | make -f Makefile.vita.salamander -j$(getconf _NPROCESSORS_ONLN) clean make -f Makefile.vita.salamander -j$(getconf _NPROCESSORS_ONLN) - + - name: Compile RA run: | make -f Makefile.vita -j$(getconf _NPROCESSORS_ONLN) clean @@ -31,7 +34,7 @@ jobs: - name: Get short SHA id: slug run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" - + - uses: actions/upload-artifact@v3 with: name: RA-PSVita-dummy-${{ steps.slug.outputs.sha8 }} diff --git a/.github/workflows/RS90.yml b/.github/workflows/RS90.yml index 99a630c1f1..1fea310bdf 100644 --- a/.github/workflows/RS90.yml +++ b/.github/workflows/RS90.yml @@ -9,16 +9,19 @@ on: permissions: contents: read +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: build: runs-on: ubuntu-latest - container: + container: image: git.libretro.com:5050/libretro-infrastructure/libretro-build-dingux:odbeta options: --user root steps: - uses: actions/checkout@v3 - + - name: Compile RA run: | make -j$(getconf _NPROCESSORS_ONLN) -f Makefile.rs90 clean @@ -27,7 +30,7 @@ jobs: - name: Get short SHA id: slug run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" - + - uses: actions/upload-artifact@v3 with: name: retroarch_rs90_mips32${{ steps.slug.outputs.sha8 }} diff --git a/.github/workflows/RetroFW.yml b/.github/workflows/RetroFW.yml index 3aa3cf2eee..24ec76f2ba 100644 --- a/.github/workflows/RetroFW.yml +++ b/.github/workflows/RetroFW.yml @@ -9,16 +9,19 @@ on: permissions: contents: read +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: build: runs-on: ubuntu-latest - container: + container: image: git.libretro.com:5050/libretro-infrastructure/libretro-build-dingux:odbeta options: --user root steps: - uses: actions/checkout@v3 - + - name: Compile RA run: | make -j$(getconf _NPROCESSORS_ONLN) -f Makefile.retrofw clean @@ -27,7 +30,7 @@ jobs: - name: Get short SHA id: slug run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" - + - uses: actions/upload-artifact@v3 with: name: retroarch_retrofw_mips32${{ steps.slug.outputs.sha8 }} diff --git a/.github/workflows/SourceRelease.yml b/.github/workflows/SourceRelease.yml index c89434d17e..7fec60c57e 100644 --- a/.github/workflows/SourceRelease.yml +++ b/.github/workflows/SourceRelease.yml @@ -9,6 +9,9 @@ on: tags: - "v*.*" +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: build: name: build diff --git a/.github/workflows/Switch-libnx.yml b/.github/workflows/Switch-libnx.yml index d3041f8244..75a25054f8 100644 --- a/.github/workflows/Switch-libnx.yml +++ b/.github/workflows/Switch-libnx.yml @@ -9,16 +9,19 @@ on: permissions: contents: read +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: build: runs-on: ubuntu-latest - container: + container: image: git.libretro.com:5050/libretro-infrastructure/libretro-build-libnx-devkitpro:latest options: --user root steps: - uses: actions/checkout@v3 - + - name: Compile RA run: | make -f Makefile.libnx -j$(getconf _NPROCESSORS_ONLN) clean @@ -26,7 +29,7 @@ jobs: - name: Get short SHA id: slug run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" - + - uses: actions/upload-artifact@v3 with: name: RA-libnx-dummy-${{ steps.slug.outputs.sha8 }} diff --git a/.github/workflows/Wii.yml b/.github/workflows/Wii.yml index dfcfa88379..fd28b2040a 100644 --- a/.github/workflows/Wii.yml +++ b/.github/workflows/Wii.yml @@ -9,21 +9,24 @@ on: permissions: contents: read +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: build: runs-on: ubuntu-latest - container: + container: image: git.libretro.com:5050/libretro-infrastructure/libretro-build-devkitpro:latest options: --user root steps: - uses: actions/checkout@v3 - + - name: Compile Salamander run: | make -f Makefile.wii.salamander -j$(getconf _NPROCESSORS_ONLN) clean make -f Makefile.wii.salamander -j$(getconf _NPROCESSORS_ONLN) EXTERNAL_LIBOGC=1 GX_PTHREAD_LEGACY=0 - + - name: Compile RA run: | make -f Makefile.wii -j$(getconf _NPROCESSORS_ONLN) clean @@ -31,7 +34,7 @@ jobs: - name: Get short SHA id: slug run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" - + - uses: actions/upload-artifact@v3 with: name: RA-Wii-dummy-${{ steps.slug.outputs.sha8 }} diff --git a/.github/workflows/WiiU.yml b/.github/workflows/WiiU.yml index fca65b108a..582598dab0 100644 --- a/.github/workflows/WiiU.yml +++ b/.github/workflows/WiiU.yml @@ -9,21 +9,24 @@ on: permissions: contents: read +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: build: runs-on: ubuntu-latest - container: + container: image: git.libretro.com:5050/libretro-infrastructure/libretro-build-wiiu:latest options: --user root steps: - uses: actions/checkout@v3 - + - name: Compile Salamander run: | make -f Makefile.wiiu -j$(getconf _NPROCESSORS_ONLN) SALAMANDER_BUILD=1 clean make -f Makefile.wiiu -j$(getconf _NPROCESSORS_ONLN) SALAMANDER_BUILD=1 - + - name: Compile RA run: | make -f Makefile.wiiu -j$(getconf _NPROCESSORS_ONLN) clean @@ -31,7 +34,7 @@ jobs: - name: Get short SHA id: slug run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" - + - uses: actions/upload-artifact@v3 with: name: RA-WiiU-dummy-${{ steps.slug.outputs.sha8 }} diff --git a/.github/workflows/Windows-i686-MXE.yml b/.github/workflows/Windows-i686-MXE.yml index 9dfe31cd51..97aa7ab711 100644 --- a/.github/workflows/Windows-i686-MXE.yml +++ b/.github/workflows/Windows-i686-MXE.yml @@ -9,16 +9,19 @@ on: permissions: contents: read +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: build: runs-on: ubuntu-latest - container: + container: image: git.libretro.com:5050/libretro-infrastructure/libretro-build-mxe-win32-cross:gcc10 options: --user root steps: - uses: actions/checkout@v3 - + - name: Compile RA run: | export MOC=/usr/lib/mxe/usr/i686-w64-mingw32.shared/qt5/bin/moc @@ -29,7 +32,7 @@ jobs: - name: Get short SHA id: slug run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" - + - uses: actions/upload-artifact@v3 with: name: retroarch${{ steps.slug.outputs.sha8 }} diff --git a/.github/workflows/Windows-x64-MXE.yml b/.github/workflows/Windows-x64-MXE.yml index 3ce50603a4..97ea027631 100644 --- a/.github/workflows/Windows-x64-MXE.yml +++ b/.github/workflows/Windows-x64-MXE.yml @@ -9,16 +9,19 @@ on: permissions: contents: read +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: build: runs-on: ubuntu-latest - container: + container: image: git.libretro.com:5050/libretro-infrastructure/libretro-build-mxe-win64-cross:gcc10 options: --user root steps: - uses: actions/checkout@v3 - + - name: Compile RA run: | export MOC=/usr/lib/mxe/usr/x86_64-w64-mingw32.shared/qt5/bin/moc @@ -29,7 +32,7 @@ jobs: - name: Get short SHA id: slug run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" - + - uses: actions/upload-artifact@v3 with: name: retroarch${{ steps.slug.outputs.sha8 }} diff --git a/.github/workflows/retroarch.yml b/.github/workflows/retroarch.yml index b1de465100..8847aa35e8 100644 --- a/.github/workflows/retroarch.yml +++ b/.github/workflows/retroarch.yml @@ -13,6 +13,9 @@ on: permissions: contents: read +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: linux-c89: # Smoketest build using most restrictive compiler and default options runs-on: ubuntu-latest diff --git a/.github/workflows/webOS.yml b/.github/workflows/webOS.yml index 669afa50ec..8eb8697949 100644 --- a/.github/workflows/webOS.yml +++ b/.github/workflows/webOS.yml @@ -9,6 +9,9 @@ on: permissions: contents: read +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + jobs: build: runs-on: ubuntu-latest