Skip to content

Commit

Permalink
Updated GitHub actions
Browse files Browse the repository at this point in the history
Updated checkout and upload-artifact to v4.

Additional macOS changes:
- updated SDL2 framework version to 2.30.5.
- changed CI runner from macos-11 to macos-12.
  • Loading branch information
simonowen committed Jul 31, 2024
1 parent aa3bf4d commit 8fbadbc
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- { cc: "clang", cxx: "clang++" }

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y -q libsdl2-dev libaudiofile-dev dpkg-dev
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/linux-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y -q libsdl2-dev libaudiofile-dev dpkg-dev

- name: Build DEB package
run: ./package/make_linux_release.sh

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: simcoupe-deb
path: build-linux/_packages/*.deb

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: simcoupe-tar
path: build-linux/*.tar.gz
4 changes: 2 additions & 2 deletions .github/workflows/macos-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:

strategy:
matrix:
os: [ macos-latest, macos-11 ]
os: [ macos-latest, macos-12 ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install SDL2
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/macos-dmg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ on: [push]

jobs:
build:
runs-on: macos-11
runs-on: macos-12

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install SDL2
run: |
curl -LO https://github.com/libsdl-org/SDL/releases/download/release-${SDL_VERSION}/SDL2-${SDL_VERSION}.dmg
hdiutil attach SDL2-${SDL_VERSION}.dmg
sudo cp -r /Volumes/SDL2/SDL2.framework /Library/Frameworks/
env:
SDL_VERSION: "2.28.5"
SDL_VERSION: "2.30.5"

- name: Build DMG image
run: ./package/make_macos_release.sh

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: simcoupe-dmg
path: build-macos/*.dmg
2 changes: 1 addition & 1 deletion .github/workflows/windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- { vs: "17 2022", arch: "x64", triplet: "x64-windows" }

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Visual Studio shell
uses: egor-tensin/vs-shell@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/windows-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: windows-2022

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install x86 dependencies
shell: cmd
Expand All @@ -21,12 +21,12 @@ jobs:
shell: powershell
run: .\package\make_windows_release.ps1

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: simcoupe-zip
path: SimCoupe-*-win_*.zip

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: simcoupe-exe
path: SimCoupe-*-win.exe

0 comments on commit 8fbadbc

Please sign in to comment.