Skip to content

Commit

Permalink
Reference workflow without caching
Browse files Browse the repository at this point in the history
(cherry picked from commit d1a8766)
  • Loading branch information
PeterKoegel committed Jul 15, 2024
1 parent f873a0e commit 2622e2f
Showing 1 changed file with 5 additions and 30 deletions.
35 changes: 5 additions & 30 deletions .github/workflows/main.yaml → .github/workflows/Golden.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Sil-Testing
name: Golden_Workflow

on:
pull_request:
push:
workflow_dispatch:

permissions:
checks: write
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2622e2f

Please sign in to comment.