Skip to content

Fix CI: Add solution file and update workflows #3

Fix CI: Add solution file and update workflows

Fix CI: Add solution file and update workflows #3

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore CpuGuard.NET.sln
- name: Build
run: dotnet build CpuGuard.NET.sln --configuration Release --no-restore
- name: Pack (verify)
run: dotnet pack CpuGuard.NET/CpuGuard.NET.csproj --configuration Release --no-build --output ./artifacts
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: nuget-package
path: ./artifacts/*.nupkg
retention-days: 7