Skip to content

build testing: try adding back cache with no restore #57

build testing: try adding back cache with no restore

build testing: try adding back cache with no restore #57

Workflow file for this run

name: .NET Build and Publish
on:
pull_request:
branches: ["dui3/alpha", "dui3/ci/github-actions-test"]
jobs:
build-and-publish:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.x.x
- name: NuGet Cache
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
- name: Format
run: ./build.ps1 format
- name: Restore
run: ./build.ps1 restore
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build
run: ./build.ps1 build
- name: Pack
run: ./build.ps1 zip
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: artifact
path: output/*.*
compression-level: 0 # no compression