Skip to content

Commit

Permalink
Update github actions with current versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioginer committed Nov 1, 2024
1 parent a16cd69 commit 54812b9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -108,15 +108,15 @@ 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

make_patch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate patch
Expand All @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 54812b9

Please sign in to comment.