PalacePal/.github/workflows/build.yml

46 lines
1.2 KiB
YAML
Raw Normal View History

2023-02-12 21:45:57 +00:00
name: dotnet build
2023-02-12 21:24:22 +00:00
on:
2023-02-12 21:45:57 +00:00
push:
2023-02-15 01:40:05 +00:00
paths-ignore:
2023-02-12 21:45:57 +00:00
- '**.md'
- 'Dockerfile'
2023-02-12 21:24:22 +00:00
jobs:
build:
2023-02-12 21:40:43 +00:00
runs-on: windows-latest
2023-02-25 00:26:05 +00:00
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 'true'
2023-03-26 12:26:12 +00:00
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
2023-02-25 00:26:05 +00:00
2023-02-12 21:24:22 +00:00
steps:
- uses: actions/checkout@v3
2023-02-12 21:32:22 +00:00
with:
submodules: true
2023-02-12 21:24:22 +00:00
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0
2023-02-12 21:40:43 +00:00
- name: Download Dalamud
run: |
Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/latest.zip -OutFile latest.zip
Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev\"
2023-03-26 12:26:12 +00:00
- id: cache-dependencies
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
2023-02-12 21:24:22 +00:00
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
2023-03-25 18:14:32 +00:00
- name: Test
run: dotnet test --no-restore --verbosity normal
2023-03-26 11:55:30 +00:00
timeout-minutes: 10