Skip to content

build

build #30

Workflow file for this run

name: .NET Core
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build
run: |
cd src
cd SideCarCLI
dotnet restore
echo "build sln"
dotnet build --configuration Release --no-restore
cd SideCarCLI
dotnet publish -c Release --no-restore -r linux-x64 -p:PublishTrimmed=true --self-contained -o linuxx64
dotnet publish -c Release --no-restore -r win-x64 -p:PublishTrimmed=true --self-contained -o winx64
dotnet pack -c Release --include-source --include-symbols -o toolpack
# - uses: actions/upload-artifact@v2
# with:
# name: winx64
# path: src/SideCarCLI/SideCarCLI/winx64/
# - uses: actions/upload-artifact@v2
# with:
# name: linuxx64
# path: src/SideCarCLI/SideCarCLI/linuxx64/
# - uses: actions/upload-artifact@v2
# with:
# name: dotnetTool
# path: src/SideCarCLI/SideCarCLI/toolpack/
#- name: Test
# run: dotnet test --no-restore --verbosity normal