Skip to content

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

build testing: try adding back cache with no restore

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

Workflow file for this run

name: .NET Build and Publish
on:
pull_request:
branches: ["dui3/alpha", "dui3/ci/github-actions-test"]
permissions:
actions: write
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: output.zip
path: output/*.*
compression-level: 0 # no compression
- name: Build Installers
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUN_ID: ${{ github.run_id }}
run: ./build.ps1 build-installers