From c1c5d3c1faf41098587ec10e7bc648796f46b6e9 Mon Sep 17 00:00:00 2001 From: jvyden Date: Tue, 19 Oct 2021 23:05:41 -0400 Subject: [PATCH] Add build ci for linux --- .github/workflows/build.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..b507e13 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,37 @@ +on: [ push ] +name: Continuous Integration + +# Inspired by Lighthouse's CI +# https://github.com/LBPUnion/project-lighthouse/blob/main/.github/workflows/ci.yml + +jobs: + test: + name: Build & Test + if: "!contains(github.event.head_commit.message, '[skip ci]')" + runs-on: ubuntu-latest + timeout-minutes: 10 + env: + DB_DATABASE: lighthouse + DB_USER: root + DB_PASSWORD: lighthouse + steps: + - name: Cancel previous runs of this workflow + uses: styfle/cancel-workflow-action@0.6.0 + with: + access_token: ${{ github.token }} + + - name: Checkout + uses: actions/checkout@v2 + + - name: Install .NET 5.0 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: "5.0.x" + + - name: Compile + run: dotnet build -c Release --project UnionPatcher.Gui.Linux + + - uses: actions/upload-artifact@v2 + with: + name: UnionPatcher-Linux + path: ${{ github.workspace }}/UnionPatcher.Gui.Linux/bin \ No newline at end of file