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

Setup libretro CI #128

Merged
merged 1 commit into from
Oct 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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