Skip to content

Add DebugCI project configuration and tweak some properties #5

Add DebugCI project configuration and tweak some properties

Add DebugCI project configuration and tweak some properties #5

Workflow file for this run

# 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 Build and Publish
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 --output output
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: Linux x64
path: output