moving to files #32
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: .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 |