Skip to content

Add logging

Add logging #98

Workflow file for this run

---
name: Build
on:
pull_request:
push:
workflow_dispatch:
jobs:
build-self-contained:
name: Build Self Contained Artifacts
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- rid: win-x64
- rid: win-x86
- rid: linux-x64
- rid: linux-arm
- rid: linux-arm64
- rid: linux-musl-x64
- rid: linux-musl-arm
- rid: linux-musl-arm64
- rid: osx-x64
- rid: osx.11.0-arm64
- rid: osx.12-arm64
steps:
- name: Checkout repo
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Print environment
run: |
dotnet --info
echo "GitHub ref: $GITHUB_REF"
echo "GitHub ref name: $GITHUB_REF_NAME"
echo "GitHub event: $GITHUB_EVENT_NAME"
- name: Restore/Clean service
run: |
echo "Restore"
dotnet restore
echo "Clean"
dotnet clean -c "Release"
- name: Build Self Contained Binary
env:
ASSEMBLY_VERSION: "1.0.0"
RID: ${{ matrix.rid }}
VERSION_SUFFIX: "dev"
run: |
OUTPUT_DIR="$(pwd)/build/sc/$RID"
echo "### Building self contained binary for $RID to $OUTPUT_DIR"
dotnet publish -c Release -o $OUTPUT_DIR -r $RID \
-p:PublishReadyToRun=true -p:PublishSingleFile=true \
-p:DebugType=None -p:DebugSymbols=false -p:PublishTrimmed=true \
--self-contained true -p:IncludeNativeLibrariesForSelfExtract=true \
-p:EnableCompressionInSingleFile=true
ls -alh $OUTPUT_DIR
- name: Upload Self Contained artifact (${{ matrix.rid }})
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_${{ matrix.rid }}
path: build/sc/${{ matrix.rid }}
if-no-files-found: error
- name: Build Self Contained Binary
env:
ASSEMBLY_VERSION: "1.0.0"
RID: ${{ matrix.rid }}
VERSION_SUFFIX: "dev"
run: |
OUTPUT_DIR="$(pwd)/build/fd/$RID"
echo "### Building framework dependent binary for $RID to $OUTPUT_DIR"
dotnet publish -c Release -o $OUTPUT_DIR -r $RID \
-p:PublishReadyToRun=true -p:PublishSingleFile=true \
-p:DebugType=None -p:DebugSymbols=false \
--self-contained true -p:IncludeNativeLibrariesForSelfExtract=true
ls -alh $OUTPUT_DIR
- name: Upload Framework Dependent artifact (${{ matrix.rid }})
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_${{ matrix.rid }}
path: build/fd/${{ matrix.rid }}
if-no-files-found: error