This repository has been archived by the owner on Sep 11, 2023. It is now read-only.
forked from SourMesen/Mesen
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from negativeExponent/libretro-ci
Setup libretro CI
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: "Libretro Linux build" | ||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
libretro-linux-build: | ||
runs-on: ubuntu-latest | ||
container: ubuntu:bionic | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up dependencies | ||
run: | | ||
apt-get update | ||
apt-get install -yq --no-install-recommends zip unzip clang make | ||
apt-get clean && rm -rf /var/cache/apt/lists/* | ||
- name: Build | ||
run: | | ||
make libretro -j$(nproc) | ||
- name: Upload binary | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: Mesen-Libretro-Linux | ||
path: bin/mesen_libretro.x64.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: "Libretro Windows build" | ||
on: push | ||
|
||
jobs: | ||
libretro-win-build: | ||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up dependencies | ||
shell: bash | ||
run: | | ||
mkdir -p "bin/Any CPU/Release" | ||
cp -v -r GUI.NET/Dependencies "bin/Any CPU/Release" | ||
git describe --tags --dirty --always >"bin\Any CPU\Release\Dependencies\DevBuild.txt" | ||
- name: Build core | ||
working-directory: bin | ||
shell: cmd | ||
run: | | ||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | ||
msbuild ..\Mesen.sln /t:Build /p:Configuration=Libretro /p:Platform=x64 | ||
- name: Upload binary | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: Mesen-Libretro-win | ||
path: bin/x64/Libretro/mesen_libretro.dll |