Skip to content

Commit 111646f

Browse files
committed
add first recipes
0 parents  commit 111646f

File tree

2 files changed

+82
-0
lines changed

2 files changed

+82
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Dolphin-libretro Windows x86_64
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
watch: # this is a hack that lets repo owners trigger a build by starring
8+
types: [started]
9+
if: github.actor == github.event.repository.owner.login
10+
11+
jobs:
12+
Windows:
13+
name: Build for Windows
14+
runs-on: windows-latest
15+
16+
steps:
17+
- name: Get latest CMake
18+
uses: lukka/get-cmake@latest
19+
- name: Checkout source
20+
run: git clone https://github.com/libretro/dolphin.git && cd dolphin && git submodule update --init
21+
- name: Build libretro dolphin core
22+
working-directory: dolphin
23+
run: mkdir build && cd build && cmake.exe -DLIBRETRO=ON -DENABLE_QT=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=ON ..
24+
25+
- name: Build the thing
26+
working-directory: dolphin/build
27+
run: cmake.exe --build . --target dolphin_libretro --config Release
28+
29+
- name: Prep for release
30+
working-directory: dolphin/Binary
31+
run: Compress-Archive -CompressionLevel Optimal -Path dolphin_libretro.dll -DestinationPath ..\..\dolphin_libretro.dll.zip
32+
- name: Create new release
33+
uses: marvinpinto/action-automatic-releases@latest
34+
with:
35+
repo_token: ${{ secrets.GITHUB_TOKEN }}
36+
automatic_release_tag: Windows_64-bit
37+
prerelease: false
38+
title: Windows x86_64
39+
files: dolphin_libretro.dll.zip
40+
- name: Save artifact
41+
uses: actions/upload-artifact@v2
42+
with:
43+
name: dolphin_libretro.dll.zip
44+
path: dolphin_libretro.dll.zip
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: MelonDS-libretro Windows x86_64
2+
3+
on:
4+
schedule:
5+
- cron: '0 2 * * *' # run at 2 AM UTC
6+
watch: # this is a hack that lets repo owners trigger a build by starring
7+
types: [started]
8+
if: github.actor == github.event.repository.owner.login
9+
10+
jobs:
11+
Windows:
12+
name: Build for Windows via cross-compile
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Install needed packages
17+
run: sudo apt install wget git build-essential mingw-w64 mingw-w64-x86-64-dev mingw-w64-tools
18+
- name: Checkout source
19+
run: git clone https://github.com/libretro/melonds.git && cd melonds && git submodule update --init
20+
- name: Build libretro melonds core
21+
working-directory: melonds
22+
run: |
23+
make CC=/usr/bin/x86_64-w64-mingw32-gcc CXX=/usr/bin/x86_64-w64-mingw32-g++ platform=win HAVE_THREADS=1 HAVE_OPENGL=1 JIT_ENABLED=1 LDFLAGS+=-lopengl32 LDFLAGS+=-lws2_32 -j8
24+
strip -s melonds_libretro.dll
25+
zip -9 ../melonds_libretro.dll.zip melonds_libretro.dll
26+
- name: Create new release
27+
uses: marvinpinto/action-automatic-releases@latest
28+
with:
29+
repo_token: ${{ secrets.GITHUB_TOKEN }}
30+
automatic_release_tag: Windows_64-bit
31+
prerelease: false
32+
title: Windows x86_64
33+
files: melonds_libretro.dll.zip
34+
- name: Save artifact
35+
uses: actions/upload-artifact@v2
36+
with:
37+
name: melonds_libretro.dll.zip
38+
path: melonds_libretro.dll.zip

0 commit comments

Comments
 (0)