Merge pull request #523 from smoogipoo/fix-net8-marshalling #330
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Veldrid CI build | |
on: | |
create: # when tags are created | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build_windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.0.x | |
- name: Restore dependencies | |
run: dotnet restore src | |
- name: Build | |
run: dotnet build --no-restore src | |
- name: Test | |
run: dotnet test --no-build --verbosity normal src --filter "Backend=D3D11" | |
- name: Build Packages | |
run: dotnet pack src -c Release | |
- name: Publish to MyGet | |
if: github.ref == 'refs/heads/master' | |
run: dotnet nuget push bin\Packages\Release\*.nupkg -s https://www.myget.org/F/mellinoe/api/v3/index.json --api-key ${{secrets.MYGET_KEY}} | |
- name: Publish tagged release to nuget.org | |
if: startsWith(github.ref, 'refs/tags/') | |
run: dotnet nuget push bin\Packages\Release\*.nupkg -s https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_KEY}} | |
- name: Generate GitHub Release | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
bin\Packages\Release\*.nupkg |