From 51fa256bcd6d314d1d8621960853a043c3e9bd31 Mon Sep 17 00:00:00 2001 From: nesquack Date: Thu, 13 Apr 2023 17:40:57 -0500 Subject: [PATCH] new actions stuff --- .github/workflows/dotnet-desktop.yml | 9 ++++--- .github/workflows/dotnet-ubuntu.yml | 37 ++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/dotnet-ubuntu.yml diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index 1987b5d..6a33969 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -2,7 +2,7 @@ name: Build UABEA Windows on: push: - branches: [ master, at3 ] + branches: [ master, linux-actions-test ] pull_request: branches: [ master ] @@ -17,7 +17,7 @@ jobs: fetch-depth: 0 - name: Install .NET Core - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: dotnet-version: 6.0.x @@ -27,7 +27,8 @@ jobs: - name: Build run: msbuild UABEAvalonia.sln /restore /p:Configuration=Release - - uses: actions/upload-artifact@v2 + - name: Upload + uses: actions/upload-artifact@v2 with: name: uabea-windows - path: UABEAvalonia/bin/Release/net6.0 + path: UABEAvalonia/bin/Release/net6.0 \ No newline at end of file diff --git a/.github/workflows/dotnet-ubuntu.yml b/.github/workflows/dotnet-ubuntu.yml new file mode 100644 index 0000000..0442b56 --- /dev/null +++ b/.github/workflows/dotnet-ubuntu.yml @@ -0,0 +1,37 @@ +name: Build UABEA Ubuntu + +on: + push: + branches: [ master, linux-actions-test ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-20.04 + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Install .NET Core + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 6.0.x + + - name: Remove TexToolWrap VC++ project + run: dotnet sln UABEAvalonia.sln remove TexToolWrap/TexToolWrap.vcxproj + + - name: Restore + run: dotnet restore + + - name: Build + run: dotnet build --configuration Release --no-restore + + - name: Upload + uses: actions/upload-artifact@v2 + with: + name: uabea-windows + path: UABEAvalonia/bin/Release/net6.0 \ No newline at end of file