Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow action updates #809

Merged
merged 12 commits into from
Jul 11, 2024
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