From fd11e695226c0fd86b003bfa008da30297f42ace Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Wed, 15 Jan 2025 11:34:35 +0100 Subject: [PATCH] Test setup-nvc. --- .github/OsvvmRegression.pro | 4 +- .github/workflows/Pipeline.yml | 190 ++++++++++++++++++++++----------- 2 files changed, 130 insertions(+), 64 deletions(-) diff --git a/.github/OsvvmRegression.pro b/.github/OsvvmRegression.pro index a242cf9..1c63aa1 100644 --- a/.github/OsvvmRegression.pro +++ b/.github/OsvvmRegression.pro @@ -1,4 +1,4 @@ set ::osvvm::FailOnBuildErrors "false" include ../OsvvmLibraries.pro -include ../RunAllTests.pro -include ../RunAllTestsVti.pro +# include ../RunAllTests.pro +# include ../RunAllTestsVti.pro diff --git a/.github/workflows/Pipeline.yml b/.github/workflows/Pipeline.yml index 5d4a303..2450174 100644 --- a/.github/workflows/Pipeline.yml +++ b/.github/workflows/Pipeline.yml @@ -8,6 +8,34 @@ on: - cron: '0 15 * * *' jobs: + Variables: + name: Compute pipeline variables + runs-on: ubuntu-24.04 + outputs: + branch: ${{ steps.Variables.outputs.branch }} + tag: ${{ steps.Variables.outputs.tag }} + steps: + - name: Compute variables + id: Variables + run: | + ref="${{ github.ref }}" + + branch="" + tag="2025.xx" + if [[ "${{ startsWith(github.ref, 'refs/heads/') }}" == "true" ]]; then + branch="${ref:11}" + elif [[ "${{ startsWith(github.ref, 'refs/tags/') }}" == "true" ]]; then + tag="${ref:10}" + else + printf "::error title=%s::%s\n" "Variables" "Unsupported Git reference format: '${ref}'." + exit 1 + fi + + tee "${GITHUB_OUTPUT}" <