Skip to content

Engine: Add new ShaderCompiler for build shader compiling (pretty har… #172

Engine: Add new ShaderCompiler for build shader compiling (pretty har…

Engine: Add new ShaderCompiler for build shader compiling (pretty har… #172

Workflow file for this run

name: Build
on:
push:
branches:
- 'main'
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v4
with:
global-json-file: ./global.json
- name: Build/Pack
run: dotnet pack Alimer.sln --configuration Release -p:Packing=true
- name: Publish to NuGet
if: github.event_name == 'push'
run: |
if ( "${{github.ref}}" -match "^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$" ) {
dotnet nuget push packages/**/*.nupkg -k ${{secrets.NUGET_TOKEN}} --skip-duplicate --source https://api.nuget.org/v3/index.json
} else {
echo "publish is only enabled by tagging with a release tag"
}
working-directory: .