diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 85c1088f2303d..0045fae5bd84c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,7 +55,7 @@ jobs: update: true install: | git make mingw-w64-x86_64-gcc mingw-w64-x86_64-python mingw-w64-x86_64-lld mingw-w64-x86_64-llvm mingw-w64-x86_64-libc++ p7zip mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_ttf - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Build GroovyMAME run: | export MINGW64=/mingw64 @@ -79,7 +79,7 @@ jobs: mv mame "groovymame_0${mamev}.${srv}_win-7-8-10" 7z a "groovymame_0${mamev}.${srv}_win-7-8-10.7z" "groovymame_0${mamev}.${srv}_win-7-8-10" - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: binaries-win32-msys path: build/release/x64/Release/groovymame*.7z @@ -88,7 +88,7 @@ jobs: # Simple linux build on ubuntu runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup environment run: | sudo apt update @@ -108,7 +108,7 @@ jobs: mv mame groovymame tar cvjf "groovymame_0${mamev}.${srv}_linux.tar.bz2" groovymame - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: binaries-linux-gcc path: build/release/x64/Release/mame/groovymame*.tar.bz2 @@ -116,7 +116,7 @@ jobs: make_patch: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Generate patch @@ -125,7 +125,7 @@ jobs: mamev="${tag:3:3}" git diff mame0${mamev}..HEAD > GroovyMAME${mamev}.patch - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: GroovyMAME-patch path: GroovyMAME*.patch @@ -140,17 +140,17 @@ jobs: tag="${GITHUB_REF#refs/*/}" # Now tag should be in the shape of gm0XXXsrYYYY, ex: gm0223sr017q mamev="${tag:3:3}" - srv="${tag: -4}" + srv="${tag: -3}" echo "GroovyMAME: 0.$mamev" echo "Switchres : 2.$srv" echo "::set-output name=mame_version::${mamev}" echo "::set-output name=switchres_version::${srv}" echo "::set-output name=current_tag::${tag}" - name: Download Artifacts - uses: actions/download-artifact@v2.0.5 + uses: actions/download-artifact@v4 - name: Create Release id: create_release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} MAME_VERSION: ${{ steps.prepare_data.outputs.mame_version }}