Skip to content

Commit

Permalink
[Actions] Updated .github/actions/build-check/action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
credfeto committed Apr 18, 2024
1 parent fa50e6b commit 52efefc
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/actions/build-check/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
--- # Define build version properties
name: 'Define Build Version'
description: 'Defines the build version properties'
inputs:
# GENERAL
GITHUB_TOKEN:
description: 'Github Token'
required: true

runs:
using: "composite"
steps:
- name: "Dotnet: Run build check (Pre-Release)"
if: env.Release == 'false'
working-directory: ${{github.workspace}}/src
shell: bash
run: dotnet buildcheck -Solution "$(find . -type f -iname "*.sln" | head -1)" -WarningAsErrors true -PreReleaseBuild false
env:
DOTNET_ROOT: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}"
DOTNET_INSTALL_DIR: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}"
DOTNET_MULTILEVEL_LOOKUP: "false"
DOTNET_NOLOGO: "true"
DOTNET_PRINT_TELEMETRY_MESSAGE: "false"
DOTNET_JitCollect64BitCounts: "1"
DOTNET_ReadyToRun: "0"
DOTNET_TC_QuickJitForLoops: "1"
DOTNET_TC_CallCountingDelayMs: "0"
DOTNET_TieredPGO: "1"
MSBUILDTERMINALLOGGER: "auto"

- name: "Dotnet: Run build check (Release)"
if: env.Release == 'true'
working-directory: ${{github.workspace}}/src
shell: bash
run: dotnet buildcheck -Solution "$(find . -type f -iname "*.sln" | head -1)" -WarningAsErrors true -PreReleaseBuild false
env:
DOTNET_ROOT: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}"
DOTNET_INSTALL_DIR: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}"
DOTNET_MULTILEVEL_LOOKUP: "false"
DOTNET_NOLOGO: "true"
DOTNET_PRINT_TELEMETRY_MESSAGE: "false"
DOTNET_JitCollect64BitCounts: "1"
DOTNET_ReadyToRun: "0"
DOTNET_TC_QuickJitForLoops: "1"
DOTNET_TC_CallCountingDelayMs: "0"
DOTNET_TieredPGO: "1"
MSBUILDTERMINALLOGGER: "auto"

0 comments on commit 52efefc

Please sign in to comment.