NuGet Publishing Infrastructure #1830
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
# SPDX-FileCopyrightText: 2025 Cesium contributors <https://github.com/ForNeVeR/Cesium> | |
# | |
# SPDX-License-Identifier: MIT | |
name: Run Build and Unit tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
main: | |
runs-on: ${{ matrix.environment }} | |
strategy: | |
matrix: | |
environment: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
fail-fast: false | |
env: | |
DOTNET_NOLOGO: 1 | |
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | |
NUGET_PACKAGES: ${{ github.workspace }}/.github/nuget-packages | |
steps: | |
- name: π Fetch Sources π | |
uses: actions/checkout@v4 | |
- name: π‘ Perform Common Steps π‘ | |
uses: ./.github/workflows/perform-common-steps | |
- name: π Build Solution π | |
shell: bash | |
run: dotnet nuke CompileAll | |
- name: π Pack Compiler Runtime-Specific Bundles π | |
shell: bash | |
run: dotnet nuke PackAllCompilerRuntimeSpecificBundles | |
- name: π¦ Pack Compiler NuPkg π¦ | |
shell: bash | |
run: dotnet nuke PackCompilerNuPkg | |
- name: β Run Unit Tests β | |
shell: bash | |
run: dotnet nuke TestAll | |
encoding: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Fetch Sources π | |
uses: actions/checkout@v4 | |
- name: β Verify encoding β | |
shell: pwsh | |
run: scripts/Test-Encoding.ps1 | |
licenses: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Fetch Sources π | |
uses: actions/checkout@v4 | |
- name: β REUSE license check β | |
uses: fsfe/reuse-action@v5 |