From bfd7c605cbb2b48f34a9eea1817ae88020528b65 Mon Sep 17 00:00:00 2001 From: Anya Date: Wed, 7 Aug 2024 10:21:49 +0200 Subject: [PATCH] Update dotnet.yml --- .github/workflows/dotnet.yml | 43 ++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 3f8eaee..9dc7c4c 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -10,27 +10,28 @@ on: branches: [ "master" ] jobs: - build: - runs-on: windows-latest + Build: + runs-on: ubuntu-latest + env: + DALAMUD_HOME: /tmp/dalamud steps: - - uses: actions/checkout@v3.5.2 - - name: Setup .NET - uses: actions/setup-dotnet@v3.0.3 + - name: Checkout Repository + uses: actions/checkout@v4 with: - dotnet-version: '8.x.x' - - name: Restore dependencies - run: dotnet restore - - name: Download Dalamud - run: | - Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/stg/latest.zip -OutFile latest.zip - Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev\" - - name: Build - run: | - dotnet build --no-restore --configuration Release --nologo - - name: Rename file - run: mv ${{ github.workspace }}/ChatContext/bin/x64/Release/ChatContext/latest.zip ${{ github.workspace }}/ChatContext/bin/x64/Release/ChatContext/ChatContext.zip - - name: Upload a Build Artifact - uses: actions/upload-artifact@v3.1.2 + submodules: true + + - name: Set up .NET + uses: actions/setup-dotnet@v3 with: - path: | - ${{ github.workspace }}/ChatContext/bin/x64/Release/ + dotnet-version: 8.0.x + + - name: Download Dalamud Latest + run: | + wget https://goatcorp.github.io/dalamud-distrib/latest.zip -O ${{ env.DALAMUD_HOME }}.zip + unzip ${{ env.DALAMUD_HOME }}.zip -d ${{ env.DALAMUD_HOME }} + + - name: Restore Project + run: dotnet restore + + - name: Build Project + run: dotnet build --configuration Release ChatContext/ChatContext.csproj