chore(deps): update actions/setup-dotnet action to v4 #223
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: ci | |
# This workflow demonstrates the minimal requirements for building, publishing, and packing the Solution with DotNet CLI | |
on: | |
push: | |
branches: [ main, develop ] | |
paths: | |
- '!**/*.md' | |
- '!**/*.txt' | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- ready_for_review | |
jobs: | |
################ | |
# BUILD | |
################ | |
build: | |
name: Build | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
buildConfig: [ "Release", "Debug" ] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
fetch-depth: 0 | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '6.0.x' # SDK Version to use. | |
include-prerelease: true | |
- name: Build | |
working-directory: ./src/ | |
run: dotnet build HXE.csproj -c ${{ matrix.buildConfig }} | |
################ | |
# BUILD AND PUBLISH | |
################ | |
publish: | |
name: Publish | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
buildConfig: [ "Release", "Debug" ] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
fetch-depth: 0 | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '6.0.x' # SDK Version to use. | |
include-prerelease: true | |
- name: Build and Publish | |
working-directory: ./src/ | |
run: dotnet publish HXE.csproj -c ${{ matrix.buildConfig }} |