Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
anya-hichu authored Aug 7, 2024
1 parent 840808f commit bfd7c60
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bfd7c60

Please sign in to comment.