-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates the actions to use v3 and target the new .net version
- Loading branch information
Showing
2 changed files
with
17 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,36 @@ | ||
name: 'build-project' | ||
|
||
on: | ||
push: #Push always triggers after a merge | ||
push: # Push always triggers after a merge | ||
branches: | ||
- master | ||
- develop | ||
pull_request: | ||
|
||
# Defines environment variables | ||
env: | ||
NETCORE_VERSION: '3.1.200' | ||
NETCORE_VERSION: '8.0.x' | ||
|
||
jobs: | ||
build: | ||
name: 'run-project-build' | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# Checkout the repository | ||
- uses: actions/checkout@v3 | ||
|
||
#Setup the environment | ||
- name: 'setup .NET Core SDK ${{ env.NETCORE_VERSION }}' | ||
uses: actions/setup-dotnet@v1 | ||
# Setup the .NET 8.0 SDK environment | ||
- name: 'setup .NET SDK ${{ env.NETCORE_VERSION }}' | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: ${{ env.NETCORE_VERSION }} | ||
|
||
# Restore all nuget packages to prevent issues during build | ||
# Restore NuGet packages to ensure dependencies are available for the build | ||
- name: 'restore nuget packages' | ||
working-directory: './src' | ||
run: dotnet restore | ||
|
||
# Build the project | ||
# Build the project in Release configuration | ||
- name: 'build project' | ||
working-directory: './src' | ||
run: dotnet build --configuration Release --no-restore |
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