-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9197c2
commit b1bda71
Showing
1 changed file
with
38 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# This workflow will build a .NET project | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | ||
|
||
name: .NET | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
env: | ||
ROOT_CSPROJ_PATH: trawler-csharp.csproj | ||
|
||
jobs: | ||
build-linux-x64: | ||
name: \[Linux x64\] Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.0.x | ||
- name: Restore dependencies | ||
run: dotnet restore --arch x64 | ||
- name: Build using 'DebugCI' configuration | ||
run: dotnet build $ROOT_CSPROJ_PATH --configuration DebugCI --arch x64 | ||
- name: Test | ||
run: dotnet test $ROOT_CSPROJ_PATH --no-build --verbosity normal --configuration DebugCI --arch x64 | ||
- name: Publish the binary | ||
run: dotnet publish $ROOT_CSPROJ_PATH --no-build --configuration DebugCI --arch x64 | ||
- name: Upload a Build Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Linux x64 | ||
path: bin/DebugCI/publish/ |