From 3fec05809fcb739c5763475bfd047b514ff43e5e Mon Sep 17 00:00:00 2001 From: Prashant Raj Date: Wed, 24 Jul 2024 12:23:34 +0530 Subject: [PATCH] add gcc if not present --- .github/workflows/release.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 33b05fd11..d2102aaa0 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -38,6 +38,17 @@ jobs: with: go-version: '>=1.22.5' + - name: Ensure GCC is installed + run: | + if ! command -v gcc &> /dev/null + then + echo "GCC could not be found, installing..." + sudo apt-get update + sudo apt-get install -y gcc + else + echo "GCC is already installed" + fi + # This step usually is not needed because the /ui/dist is pregenerated locally # but its here to ensure that each release embeds the latest admin ui artifacts. # If the artificats differs, a "dirty error" is thrown - https://goreleaser.com/errors/dirty/