From 52efefc510e6cc998373bd9b206bf9046e671231 Mon Sep 17 00:00:00 2001 From: Mark Ridgwell Date: Thu, 18 Apr 2024 16:11:34 +0000 Subject: [PATCH] [Actions] Updated .github/actions/build-check/action.yml --- .github/actions/build-check/action.yml | 47 ++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/actions/build-check/action.yml diff --git a/.github/actions/build-check/action.yml b/.github/actions/build-check/action.yml new file mode 100644 index 00000000..7581c37e --- /dev/null +++ b/.github/actions/build-check/action.yml @@ -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"