simplify Polyfill PrivateAssets (#148) #145
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------------------------------------------------ | |
# <auto-generated> | |
# | |
# This code was generated. | |
# | |
# - To turn off auto-generation set: | |
# | |
# [GitHubActions (AutoGenerate = false)] | |
# | |
# - To trigger manual generation invoke: | |
# | |
# nuke --generate-configuration GitHubActions_BuildAndPack --host GitHubActions | |
# | |
# </auto-generated> | |
# ------------------------------------------------------------------------------ | |
name: BuildAndPack | |
on: | |
push: | |
branches: | |
- master | |
- main | |
tags: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
ubuntu-latest: | |
name: ubuntu-latest | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
8.0.x | |
7.0.x | |
6.0.x | |
5.0.x | |
3.1.x | |
- name: Cache .nuke/temp, ~/.nuget/packages | |
uses: actions/cache@v2 | |
with: | |
path: | | |
.nuke/temp | |
~/.nuget/packages | |
!~/.nuget/packages/stronglytypeid | |
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }} | |
- name: Run './build.cmd Clean Test TestPackages PushToNuGet' | |
run: ./build.cmd Clean Test TestPackages PushToNuGet | |
env: | |
GithubToken: ${{ secrets.GITHUB_TOKEN }} | |
NuGetToken: ${{ secrets.NUGET_TOKEN }} | |
MSBuildEnableWorkloadResolver: false | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: artifacts-linux | |
path: artifacts | |
windows-latest: | |
name: windows-latest | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
8.0.x | |
7.0.x | |
6.0.x | |
5.0.x | |
3.1.x | |
- name: Cache .nuke/temp, ~/.nuget/packages | |
uses: actions/cache@v2 | |
with: | |
path: | | |
.nuke/temp | |
~/.nuget/packages | |
!~/.nuget/packages/stronglytypeid | |
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }} | |
- name: Run './build.cmd Clean Test TestPackages PushToNuGet' | |
run: ./build.cmd Clean Test TestPackages PushToNuGet | |
env: | |
GithubToken: ${{ secrets.GITHUB_TOKEN }} | |
NuGetToken: ${{ secrets.NUGET_TOKEN }} | |
MSBuildEnableWorkloadResolver: false | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: artifacts-windows | |
path: artifacts | |
macOS-latest: | |
name: macos-13 # latest is arm64, and it breaks a bunch of stuff | |
runs-on: macos-13 # latest is arm64, and it breaks a bunch of stuff | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
8.0.x | |
7.0.x | |
6.0.x | |
5.0.x | |
3.1.x | |
- name: Cache .nuke/temp, ~/.nuget/packages | |
uses: actions/cache@v2 | |
with: | |
path: | | |
.nuke/temp | |
~/.nuget/packages | |
!~/.nuget/packages/stronglytypeid | |
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }} | |
- name: Run './build.cmd Clean Test TestPackages PushToNuGet' | |
run: ./build.cmd Clean Test TestPackages PushToNuGet | |
env: | |
GithubToken: ${{ secrets.GITHUB_TOKEN }} | |
NuGetToken: ${{ secrets.NUGET_TOKEN }} | |
MSBuildEnableWorkloadResolver: false | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: artifacts-macos | |
path: artifacts |