Skip to content

Commit 6f2734a

Browse files
NovaSquirrelmkwong98
authored andcommitted
Merge pull request SourMesen#128 from negativeExponent/libretro-ci
Setup libretro CI
1 parent 8063224 commit 6f2734a

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Libretro Linux build"
2+
on:
3+
push:
4+
workflow_dispatch:
5+
6+
jobs:
7+
libretro-linux-build:
8+
runs-on: ubuntu-latest
9+
container: ubuntu:bionic
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up dependencies
13+
run: |
14+
apt-get update
15+
apt-get install -yq --no-install-recommends zip unzip clang make
16+
apt-get clean && rm -rf /var/cache/apt/lists/*
17+
- name: Build
18+
run: |
19+
make libretro -j$(nproc)
20+
- name: Upload binary
21+
uses: actions/upload-artifact@v1
22+
with:
23+
name: Mesen-Libretro-Linux
24+
path: bin/mesen_libretro.x64.so

.github/workflows/libretro-win.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Libretro Windows build"
2+
on: push
3+
4+
jobs:
5+
libretro-win-build:
6+
runs-on: windows-2019
7+
steps:
8+
- uses: actions/checkout@v2
9+
- name: Set up dependencies
10+
shell: bash
11+
run: |
12+
mkdir -p "bin/Any CPU/Release"
13+
cp -v -r GUI.NET/Dependencies "bin/Any CPU/Release"
14+
git describe --tags --dirty --always >"bin\Any CPU\Release\Dependencies\DevBuild.txt"
15+
- name: Build core
16+
working-directory: bin
17+
shell: cmd
18+
run: |
19+
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
20+
msbuild ..\Mesen.sln /t:Build /p:Configuration=Libretro /p:Platform=x64
21+
- name: Upload binary
22+
uses: actions/upload-artifact@v1
23+
with:
24+
name: Mesen-Libretro-win
25+
path: bin/x64/Libretro/mesen_libretro.dll

0 commit comments

Comments
 (0)