From a286068a384fa152f846f46693c20f215ae32b39 Mon Sep 17 00:00:00 2001 From: Salah Al Saleh Date: Wed, 24 Jan 2024 16:29:26 +0000 Subject: [PATCH] install necessary packages --- .github/workflows/build-test.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index ce8207a7c3..66c1f8cabf 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -281,16 +281,14 @@ jobs: - id: cache-dir run: echo "cache_dir=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT" + - name: install necessary packages for arm64 + if: matrix.runner.arch == 'arm64' + run: apt-get install -y curl gettext-base + - name: template melange config env: GIT_TAG: ${{ needs.generate-tag.outputs.tag }} - run: | - if [ "${{ matrix.runner.arch }}" == "arm64" ]; then - curl -L https://github.com/a8m/envsubst/releases/download/v1.4.2/envsubst-Linux-arm64 -o envsubst - chmod +x envsubst - mv envsubst /usr/local/bin - fi - envsubst '${GIT_TAG}' < deploy/melange.yaml.tmpl > deploy/melange.yaml + run: envsubst '${GIT_TAG}' < deploy/melange.yaml.tmpl > deploy/melange.yaml - uses: chainguard-dev/actions/melange-build@main with: