From 57a5ad9c75d8c542358d0b4310cecabb80e627c9 Mon Sep 17 00:00:00 2001 From: NovaSquirrel Date: Mon, 10 May 2021 18:15:32 -0400 Subject: [PATCH] Try setting up CI --- .github/workflows/linux-build.yml | 20 ++++++++++++++++++++ .github/workflows/win-build.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .github/workflows/linux-build.yml create mode 100644 .github/workflows/win-build.yml diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml new file mode 100644 index 00000000..530659f8 --- /dev/null +++ b/.github/workflows/linux-build.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/win-build.yml b/.github/workflows/win-build.yml new file mode 100644 index 00000000..80b507c4 --- /dev/null +++ b/.github/workflows/win-build.yml @@ -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