Skip to content

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

build testing: try adding back cache with no restore

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

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 And Upload
run: ./build.ps1 zip