Skip to content

Verify the incremantality of the generator #162

Verify the incremantality of the generator

Verify the incremantality of the generator #162

Workflow file for this run

# ------------------------------------------------------------------------------
# <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.101
7.0.x
6.0.x
5.0.x
3.1.x
2.1.x
- name: Force globaljson
run: dotnet new globaljson --sdk-version "8.0.101" --force
- name: Cache .nuke/temp, ~/.nuget/packages
uses: actions/cache@v3
with:
path: |
.nuke/temp
~/.nuget/packages
!~/.nuget/packages/netescapades.enumgenerators
!~/.nuget/packages/netescapades.enumgenerators.attributes
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
- name: Run './build.cmd Clean Test TestPackage PushToNuGet'
run: ./build.cmd Clean Test TestPackage PushToNuGet
env:
GithubToken: ${{ secrets.GITHUB_TOKEN }}
NuGetToken: ${{ secrets.NUGET_TOKEN }}
MSBuildEnableWorkloadResolver: false
- uses: actions/upload-artifact@v1
with:
name: artifacts
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.101
7.0.x
6.0.x
5.0.x
3.1.x
2.1.x
- name: Force globaljson
run: dotnet new globaljson --sdk-version "8.0.101" --force
- name: Cache .nuke/temp, ~/.nuget/packages
uses: actions/cache@v3
with:
path: |
.nuke/temp
~/.nuget/packages
!~/.nuget/packages/netescapades.enumgenerators
!~/.nuget/packages/netescapades.enumgenerators.attributes
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
- name: Run './build.cmd Clean Test TestPackage PushToNuGet'
run: ./build.cmd Clean Test TestPackage PushToNuGet
env:
GithubToken: ${{ secrets.GITHUB_TOKEN }}
NuGetToken: ${{ secrets.NUGET_TOKEN }}
MSBuildEnableWorkloadResolver: false
- uses: actions/upload-artifact@v1
with:
name: artifacts
path: artifacts
macOS-latest:
name: macOS-latest
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8.0.101
7.0.x
6.0.x
5.0.x
3.1.x
2.1.x
- name: Force globaljson
run: dotnet new globaljson --sdk-version "8.0.101" --force
- name: Cache .nuke/temp, ~/.nuget/packages
uses: actions/cache@v3
with:
path: |
.nuke/temp
~/.nuget/packages
!~/.nuget/packages/netescapades.enumgenerators
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
- name: Run './build.cmd Clean Test TestPackage PushToNuGet'
run: ./build.cmd Clean Test TestPackage PushToNuGet
env:
GithubToken: ${{ secrets.GITHUB_TOKEN }}
NuGetToken: ${{ secrets.NUGET_TOKEN }}
MSBuildEnableWorkloadResolver: false
- uses: actions/upload-artifact@v1
with:
name: artifacts
path: artifacts