Skip to content

Commit

Permalink
CI: update github workflows (#809)
Browse files Browse the repository at this point in the history
* Update macOS version in build_interface.yml

* Typo fixes in build_interface.yml

* build.yml: Update runner images

* build.yml: Update deprecated actions

* build_interface.yml: Update runner images

* build_interface.yml: Update deprecated actions

* build_interface.yml: Remove unnecessary packages from macOS "brew install" line to address warnings

* build_win.yml: Update runner image + remove vs-version parameter from setup-msbuild action

* build_win.yml: Update deprecated actions
  • Loading branch information
SimonAfek authored Jul 11, 2024
1 parent 00dd6fb commit dd88556
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 24 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ on:
jobs:
build:
name: Build DeSmuME (Linux)
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

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

- name: install dependencies
run: sudo apt update && sudo apt install meson libsdl2-dev libpcap-dev libgtk-3-dev
Expand All @@ -26,11 +26,11 @@ jobs:

build_gtk2:
name: Build DeSmuME (Linux/GTK+2)
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

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

- name: install dependencies
run: sudo apt update && sudo apt install autoconf libglu1-mesa-dev libsdl2-dev libpcap-dev libgtk2.0-dev
Expand All @@ -49,18 +49,18 @@ jobs:
tar cJf DeSmuME.tar.xz DeSmuME/
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: desmume-linux-gtk2-cli-x86_64
path: /tmp/DeSmuME.tar.xz

build_macos:
name: Build DeSmuME (macOS)
runs-on: macOS-11
runs-on: macos-14

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

- name: xcodebuild
run: |
Expand All @@ -73,7 +73,7 @@ jobs:
7z a DeSmuME.app.zip DeSmuME.app
- name: Upload artifict
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: macos
path: desmume/src/frontend/cocoa/desmume.xcarchive/Products/Applications/DeSmuME.app.zip
Expand Down
24 changes: 13 additions & 11 deletions .github/workflows/build_interface.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ on:

jobs:
build_linux:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
name: Build Linux
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install dependencies
run: sudo apt update && sudo apt install meson libsdl2-dev libpcap-dev
Expand All @@ -24,20 +24,20 @@ jobs:
run: ninja -C desmume/src/frontend/interface/build

- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: linux
path: desmume/src/frontend/interface/build/libdesmume.so

build_macos:
runs-on: macos-12
runs-on: macos-14
name: Build MacOS
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install MacOS build deps
run: brew install coreutils gcc sdl2 meson glib
run: brew install coreutils sdl2 meson

- name: Build - Meson
run: |
Expand All @@ -54,32 +54,34 @@ jobs:
CXX: clang++

- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: macos
path: desmume/src/frontend/interface/build/libdesmume.dylib

build_windows:
runs-on: windows-2019
runs-on: windows-2022
name: Build Windows
strategy:
fail-fast: false
matrix:
arch: [ 'x64', 'x86' ]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Add msbuild to PATH
uses: microsoft/[email protected]
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: ${{ matrix.arch }}

- name: Build
run: |
cd desmume\src\frontend\interface\windows
MSBuild.exe DeSmuME_Interface.vcxproj /p:configuration="Release Fastbuild" /p:Platform=${{ matrix.arch }}
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: win-${{ matrix.arch }}
path: desmume/src/frontend/interface/windows/__bins/*.dll
9 changes: 4 additions & 5 deletions .github/workflows/build_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@ on:

jobs:
build-sln:
runs-on: windows-2019
runs-on: windows-2022

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

- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.1
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x64
vs-version: 16.1

- name: Build solution
run: |
Expand All @@ -24,7 +23,7 @@ jobs:
cmd /c desmume\src\frontend\windows\ci_postbuild.bat
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: desmume-win-x64
path: desmume/src/frontend/windows/__bins/*.exe
Expand Down

0 comments on commit dd88556

Please sign in to comment.