mirror of
https://github.com/amerkoleci/Vortice.Win32.git
synced 2026-01-14 08:06:02 +08:00
Update to official .NET 7 SDK and improve bindings.
This commit is contained in:
26
.github/workflows/build.yml
vendored
26
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user