Try setting up CI
This commit is contained in:
parent
ccb23742dd
commit
57a5ad9c75
2 changed files with 47 additions and 0 deletions
20
.github/workflows/linux-build.yml
vendored
Normal file
20
.github/workflows/linux-build.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: "Linux build"
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
win-build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up dependencies
|
||||
run: |
|
||||
sudo apt-get -qq update
|
||||
sudo apt-get install -yq libsdl2-dev mono-devel
|
||||
- name: Build
|
||||
run: |
|
||||
make
|
||||
# - name: Upload binary
|
||||
# uses: actions/upload-artifact@v1
|
||||
# with:
|
||||
# name: Mesen-win
|
||||
# path: bin/Any CPU/Release/Mesen.exe
|
27
.github/workflows/win-build.yml
vendored
Normal file
27
.github/workflows/win-build.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
name: "Windows build"
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
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=Release /p:Platform=x64
|
||||
copy "x64\Release\MesenCore.dll" "Any CPU\Release\Dependencies\MesenCore.x64.dll"
|
||||
msbuild ..\Mesen.sln /t:Build /p:Configuration=Release /p:Platform="Any CPU" /property:DefineConstants="HIDETESTMENU;AUTOBUILD"
|
||||
- name: Upload binary
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: Mesen-win
|
||||
path: bin/Any CPU/Release/Mesen.exe
|
Loading…
Add table
Reference in a new issue