Update to official .NET 7 SDK and improve bindings.

This commit is contained in:
Amer Koleci
2022-11-17 14:14:45 +01:00
parent a73143c08f
commit dec4ed8056
52 changed files with 293 additions and 142 deletions

View File

@@ -5,15 +5,16 @@ on:
branches:
- 'main'
paths-ignore:
- 'docs/**'
- '*.md'
- 'LICENSE'
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'
- 'LICENSE'
env:
DOTNET_CLI_TELEMETRY_OPTOUT: false
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
jobs:
build:
@@ -22,18 +23,21 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install .NET 7.0.x
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- name: Install .NET 7 SDK
uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.0.x
include-prerelease: true
dotnet-version: 7.0.100
- name: Pack
run: dotnet pack Vortice.Win32.sln --configuration Release --output build/packages
run: dotnet pack Vortice.Win32.sln --configuration Release --output artifacts
- name: Publish to NuGet
if: github.event_name == 'push'
run: dotnet nuget push build/packages/**/*.nupkg -k ${{secrets.NUGET_TOKEN}} --skip-duplicate --source https://api.nuget.org/v3/index.json
- name: Upload Package Artifacts
uses: actions/upload-artifact@v3
with:
name: Packages
path: artifacts\*.nupkg
if-no-files-found: error