use UNIX style paths for install rules #18
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: Build | |
on: | |
# Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g., for dependabot pull requests) | |
push: | |
branches: [ main ] | |
# Trigger the workflow on any pull request | |
pull_request: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fetch Sources | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
filter: tree:0 | |
submodules: recursive | |
- name: Setup .NET environment | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: "8.0.100" | |
- name: Restore project | |
run: | | |
dotnet restore | |
dotnet tool restore | |
- name: Build MSBuild tasks | |
run: | | |
dotnet build -c ReleaseTasks | |
- name: Pack SDK | |
run: | | |
dotnet pack -c ReleaseSdk | |
- name: Upload nupkg artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: nupkg-build | |
path: ./*/bin/ReleaseSdk/*.nupkg |