Merge pull request #57 from smoogipoo/reduce-mtl-cb-allocs #199
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@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore dependencies | |
run: dotnet restore src | |
- name: Build | |
run: dotnet build --no-restore src -c Release | |
- name: Build Packages | |
run: dotnet pack src -c Release | |
- name: Publish tagged release to nuget.org | |
if: startsWith(github.ref, 'refs/tags/') | |
run: dotnet nuget push bin\Packages\Release\ppy.*.nupkg -s https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} | |
- name: Generate GitHub Release | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
bin\Packages\Release\ppy.*.nupkg |