Skip to content

Commit

Permalink
fixup! fixup! fixup! lsb-release tryout
Browse files Browse the repository at this point in the history
  • Loading branch information
jschobben committed Dec 22, 2024
1 parent b76ec40 commit 5040790
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,19 @@ jobs:
echo "Build age: ${AGE} days"
[[ "$AGE" -lt 30 ]]
- name: hops
- name: Get OS release
run: |
lsb_release -as || true
env || true
if RELEASE=$(lsb_release --release --short 2>/dev/null); then
echo "OS_RELEASE=${RELEASE}" >> $GITHUB_ENV
else
echo "OS_RELEASE=non_linux" >> $GITHUB_ENV
fi
- name: Cache 3mfmerge
uses: actions/cache@v4
with:
path: 3mfmerge/bin
key: test-${{ matrix.runner }}-${{ runner.arch }}-${{ env.ImageVersion }}-3mfmerge-${{ hashFiles('3mfmerge/*') }}
key: test-${{ matrix.runner }}-${{ runner.arch }}-${{ env.OS_RELEASE }}-${{ env.ImageVersion }}-3mfmerge-${{ hashFiles('3mfmerge/*') }}

# This step takes most of the time as it includes lib3mf build, hence the caching.
- name: Build 3mfmerge
Expand Down

0 comments on commit 5040790

Please sign in to comment.