Add an MSBuild task to call MinVer #1554
Workflow file for this run
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
name: ci | |
on: | |
push: | |
branches: [main, release-*] | |
pull_request: | |
permissions: read-all | |
env: | |
DOTNET_NOLOGO: true | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
# old macOS, latest LTS | |
- job: | |
os: macos-11 | |
tests: | |
framework: net8.0 | |
sdk: "8.0.101" | |
sdk-major-minor: "8.0" | |
# old macOS, latest LTS | |
- job: | |
os: macos-12 | |
tests: | |
framework: net8.0 | |
sdk: "8.0.101" | |
sdk-major-minor: "8.0" | |
# current macOS, latest LTS and latest | |
- job: | |
os: macos-13 | |
tests: | |
framework: net8.0 | |
sdk: "8.0.101" | |
sdk-major-minor: "8.0" | |
# old Linux, latest LTS | |
- job: | |
os: ubuntu-20.04 | |
tests: | |
framework: net8.0 | |
sdk: "8.0.101" | |
sdk-major-minor: "8.0" | |
# current Linux, all | |
- job: | |
os: ubuntu-22.04 | |
tests: | |
framework: net6.0 | |
sdk: "6.0.418" | |
sdk-major-minor: "6.0" | |
- job: | |
os: ubuntu-22.04 | |
tests: | |
framework: net7.0 | |
sdk: "7.0.405" | |
sdk-major-minor: "7.0" | |
- job: | |
os: ubuntu-22.04 | |
upload: true | |
tests: | |
framework: net8.0 | |
sdk: "8.0.101" | |
sdk-major-minor: "8.0" | |
# old Windows, latest LTS | |
- job: | |
os: windows-2019 | |
tests: | |
framework: net8.0 | |
sdk: "8.0.101" | |
sdk-major-minor: "8.0" | |
# current Windows, latest LTS and latest | |
- job: | |
os: windows-2022 | |
tests: | |
framework: net8.0 | |
sdk: "8.0.101" | |
sdk-major-minor: "8.0" | |
name: ${{ matrix.job.os }}-sdk-${{ matrix.tests.sdk-major-minor }} | |
runs-on: ${{ matrix.job.os }} | |
steps: | |
- uses: actions/[email protected] | |
with: | |
dotnet-version: | | |
${{ matrix.tests.sdk }} | |
8.0.101 | |
- run: dotnet --info | |
- run: git --version | |
- uses: actions/[email protected] | |
- env: | |
CI_NUMBER: ${{ github.run_number }} | |
MINVER_VERSION: ${{ vars.MINVER_VERSION }} | |
MINVER_TESTS_SDK: ${{ matrix.tests.sdk }} | |
MINVER_TESTS_FRAMEWORK: ${{ matrix.tests.framework }} | |
run: ./build --verbose | |
- if: matrix.job.upload | |
uses: actions/[email protected] | |
with: | |
name: NuGet packages | |
path: ./**/*.nupkg |