mirror of
https://github.com/NovaSquirrel/Mesen-X.git
synced 2024-05-16 11:10:56 -04:00
Setup libretro CI
This commit is contained in:
parent
805ed6adc8
commit
fc33e20a5b
24
.github/workflows/libretro-linux.yml
vendored
Normal file
24
.github/workflows/libretro-linux.yml
vendored
Normal file
|
@ -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
.github/workflows/libretro-win.yml
vendored
Normal file
25
.github/workflows/libretro-win.yml
vendored
Normal file
|
@ -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
|
Loading…
Reference in a new issue