Skip to content

Cleanup warnings

Cleanup warnings #137

Workflow file for this run

name: CI
on: [push, pull_request, workflow_dispatch]
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
jobs:
build:
name: ${{ matrix.platform.name }} ${{ matrix.dotnet.name }}
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
platform:
- { name: Linux, os: ubuntu-22.04 }
- { name: Windows VS2022, os: windows-2022 }
- { name: macOS, os: macos-13 }
dotnet:
- { name: .NET 8, version: "8.0.x" }
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup .NET ${{ matrix.dotnet.version }} SDK
id: setup-dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet.version }}
- name: Enforce SDK Version
run: dotnet new globaljson --sdk-version ${{ steps.setup-dotnet.outputs.dotnet-version }} --force
- name: Verify SDK Installation
run: dotnet --info
- name: Install Dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Publish
if: matrix.platform.name == 'Windows VS2022' && matrix.dotnet.name == '.NET 6'
run: |
dotnet publish --runtime win10-x64 --no-self-contained --configuration Release -p:DebugType=None -p:DebugSymbols=false -p:PublishReadyToRun=true -p:IncludeNativeLibrariesForSelfExtract=true -o Publish
cp ./Start.cmd ./Publish
cp ./README.md ./Publish
cp ./CHANGELOG.md ./Publish
- name: Upload Artifact
if: matrix.platform.name == 'Windows VS2022' && matrix.dotnet.name == '.NET 6'
uses: actions/upload-artifact@v3
with:
name: PIN-${{ github.sha }}
path: Publish