Skip to content

Commit

Permalink
fix: example
Browse files Browse the repository at this point in the history
Signed-off-by: AtomicFS <[email protected]>
  • Loading branch information
AtomicFS committed Sep 27, 2024
1 parent 85e40fd commit e1a873d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,18 @@ jobs:
path: ./Edk2
key: edk2-${{ matrix.edk2-version }}

- name: Get versions of edk2
id: edk2_versions
run: |
echo "ver_current=$( echo ${{ matrix.edk2-version }} | tr -cd '0-9' )" >> "${GITHUB_OUTPUT}"
echo "ver_breaking=$( echo 'edk2-stable202305' | tr -cd '0-9' )" >> "${GITHUB_OUTPUT}"
- name: Use GCC5 for old edk2
id: gcc_toolchain
# GCC5 is depreciated since edk2-stable202305
# For more information see https://github.com/9elements/firmware-action/issues/340
run: |
if [[ "$( echo ${{ matrix.edk2-version }} | tr -cd '0-9' )" >= "$( echo 'edk2-stable202305' | tr -cd '0-9' )" ]]; then
if [[ ${{ steps.edk2_versions.outputs.ver_current }} >= ${{ steps.edk2_versions.outputs.ver_breaking }} ]]; then
echo "gcc_toolchain_version=GCC" >> "${GITHUB_OUTPUT}"
else
echo "gcc_toolchain_version=GCC5" >> "${GITHUB_OUTPUT}"
Expand Down

0 comments on commit e1a873d

Please sign in to comment.