2020-11-02 16:14:21 +00:00
|
|
|
name: DeSmuME
|
|
|
|
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-12-14 19:29:10 +00:00
|
|
|
name: Build DeSmuME (Linux)
|
2020-11-02 16:14:21 +00:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: install dependencies
|
2021-01-21 15:10:47 +00:00
|
|
|
run: sudo apt update && sudo apt install meson libsdl2-dev libpcap-dev libgtk-3-dev
|
2020-11-02 16:14:21 +00:00
|
|
|
|
|
|
|
- name: meson
|
|
|
|
run: |
|
|
|
|
cd desmume/src/frontend/posix/
|
|
|
|
meson build
|
|
|
|
|
|
|
|
- name: ninja
|
|
|
|
run: ninja -C desmume/src/frontend/posix/build
|
2021-12-14 19:29:10 +00:00
|
|
|
|
2022-06-30 08:32:07 +00:00
|
|
|
build_gtk2:
|
|
|
|
name: Build DeSmuME (Linux/GTK+2)
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: install dependencies
|
|
|
|
run: sudo apt update && sudo apt install autoconf libglu1-mesa-dev libsdl2-dev libpcap-dev libgtk2.0-dev
|
|
|
|
|
|
|
|
- name: buildit
|
|
|
|
run: |
|
|
|
|
cd desmume/src/frontend/posix/
|
|
|
|
autoreconf -i
|
|
|
|
./configure --prefix=/usr --enable-gdb-stub --enable-wifi
|
2023-02-28 02:59:52 +00:00
|
|
|
make -j8
|
2022-06-30 10:40:56 +00:00
|
|
|
make DESTDIR=/tmp/DeSmuME install
|
|
|
|
|
|
|
|
- name: Pack artifact
|
|
|
|
run: |
|
|
|
|
cd /tmp
|
|
|
|
tar cJf DeSmuME.tar.xz DeSmuME/
|
|
|
|
|
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: desmume-linux-gtk2-cli-x86_64
|
|
|
|
path: /tmp/DeSmuME.tar.xz
|
2022-06-30 08:32:07 +00:00
|
|
|
|
2021-12-14 19:29:10 +00:00
|
|
|
build_macos:
|
|
|
|
name: Build DeSmuME (macOS)
|
|
|
|
runs-on: macOS-11
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: xcodebuild
|
|
|
|
run: |
|
|
|
|
cd desmume/src/frontend/cocoa/
|
2022-04-03 00:36:25 +00:00
|
|
|
xcodebuild archive -project "DeSmuME (Latest).xcodeproj" -scheme "DeSmuME (macOS App; Intel64 -- Latest Xcode)" -arch x86_64 -archivePath "$(pwd)/desmume.xcarchive" | xcpretty -c
|
2021-12-14 19:29:10 +00:00
|
|
|
|
|
|
|
- name: make zip
|
|
|
|
run: |
|
|
|
|
cd desmume/src/frontend/cocoa/desmume.xcarchive/Products/Applications/
|
|
|
|
7z a DeSmuME.app.zip DeSmuME.app
|
|
|
|
|
|
|
|
- name: Upload artifict
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: macos
|
|
|
|
path: desmume/src/frontend/cocoa/desmume.xcarchive/Products/Applications/DeSmuME.app.zip
|
2022-04-03 00:36:25 +00:00
|
|
|
if-no-files-found: error
|