Skip to content

NuGet Publishing Infrastructure #1826

NuGet Publishing Infrastructure

NuGet Publishing Infrastructure #1826

# 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