Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #128 from negativeExponent/libretro-ci
Browse files Browse the repository at this point in the history
Setup libretro CI
  • Loading branch information
NovaSquirrel authored Oct 3, 2022
2 parents 3e7308c + fc33e20 commit 6625068
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/libretro-linux.yml
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
25 changes: 25 additions & 0 deletions .github/workflows/libretro-win.yml
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

0 comments on commit 6625068

Please sign in to comment.