From 2622e2f2d360b50078728c3030402ed6bfb69d58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20K=C3=B6gel?= Date: Mon, 10 Jun 2024 17:13:15 +0200 Subject: [PATCH] Reference workflow without caching (cherry picked from commit d1a8766410682ee9656e015c489002a1538a6ac7) --- .github/workflows/{main.yaml => Golden.yaml} | 35 +++----------------- 1 file changed, 5 insertions(+), 30 deletions(-) rename .github/workflows/{main.yaml => Golden.yaml} (86%) diff --git a/.github/workflows/main.yaml b/.github/workflows/Golden.yaml similarity index 86% rename from .github/workflows/main.yaml rename to .github/workflows/Golden.yaml index fd73076..c4d7c03 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/Golden.yaml @@ -1,7 +1,8 @@ -name: Sil-Testing +name: Golden_Workflow on: - pull_request: + push: + workflow_dispatch: permissions: checks: write @@ -17,36 +18,10 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - # cache the SUT directory to speed up subsequent builds - - name: Cache SUT - id: cache-sut - uses: actions/cache@v4 - with: - path: | - ./ECU/SUT - key: ${{ hashFiles('./ECU/**') }} - - # cache the BSW directory to speed up subsequent builds - - name: Cache BSW - id: cache-bsw - uses: actions/cache@v4 - with: - path: | - ./ECU/Appl/GenDataVTT - key: ${{ hashFiles('./ECU/LightControl.dpa','./ECU/Config') }} - # run DaVinci & vVIRTUALtarget if no cache build is available - name: Run DaVinci & vVIRTUALtarget - if: steps.cache-sut.outputs.cache-hit != 'true' - env: - cacheBSW: ${{ steps.cache-bsw.outputs.cache-hit }} run: | - if ($env:cacheBSW -ne 'true'){ - VttMake make ./ECU/LightControl.vttmake; - } - else { - VttMake make ./ECU/LightControl.vttmake --excludeDVCfgCmd; - } + VttMake make ./ECU/LightControl.vttmake; if(-Not $?) { Write-Host "VttMake step failed." -ForegroundColor red @@ -120,7 +95,7 @@ jobs: with: name: SUT path: ECU/SUT - + # download the compiled environment and tests artifact produced by the build-simulation job - name: Fetch compiled-environment-and-tests artifact uses: actions/download-artifact@v4