From 803ef6566e8693e4fd7292da1b99e03c48ba7d85 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 3 May 2023 17:06:40 +0000 Subject: [PATCH] build: use ghaction-upx thanks @crazy-max! Signed-off-by: Carlos Alexandro Becker --- .github/workflows/build.yml | 5 +++-- .github/workflows/release.yml | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ceb511dcc..60f535d97 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,8 +45,9 @@ jobs: sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft mkdir -p $HOME/.cache/snapcraft/download mkdir -p $HOME/.cache/snapcraft/stage-packages - - name: setup-upx - run: sudo apt-get -yq --no-install-suggests --no-install-recommends install upx-ucl + - uses: crazy-max/ghaction-upx@v2 + with: + install-only: true - uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4 with: go-version: stable diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fedd2d391..afdbb737c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -98,6 +98,9 @@ jobs: key: ${{ github.ref }} - uses: sigstore/cosign-installer@v3.0.3 - uses: anchore/sbom-action/download-syft@v0.14.1 + - uses: crazy-max/ghaction-upx@v2 + with: + install-only: true - name: dockerhub-login if: startsWith(github.ref, 'refs/tags/v') uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v1