From 102253f9da2b3c150af242dae159fa4d9e9f293f Mon Sep 17 00:00:00 2001 From: Milosz Wasilewski Date: Wed, 2 Jul 2025 15:08:12 +0100 Subject: [PATCH] Add zstd archive to tagged releases zstd archive helps with running tests on space constrained systems. It's already supported in LAVA and tuxlava (template renderer). This patch will make it possible to use qcom-linux-testkit in tuxlava. Signed-off-by: Milosz Wasilewski --- .github/workflows/zstd.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/zstd.yml diff --git a/.github/workflows/zstd.yml b/.github/workflows/zstd.yml new file mode 100644 index 00000000..53bb8daa --- /dev/null +++ b/.github/workflows/zstd.yml @@ -0,0 +1,37 @@ +name: Zstd Archive Release + +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' # Matching tags like v1.1.0 + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install zstd + run: sudo apt-get update && sudo apt-get install -y zstd + + - name: Extract version info + id: version + run: | + TAG_NAME="${GITHUB_REF#refs/tags/}" + echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT + + - name: Create .tar.zst archives using git archive + run: | + git archive --format=tar --prefix=test-definitions/ ${{ steps.version.outputs.tag_name }} \ + | zstd -o ../${{ steps.version.outputs.tag_name }}.tar.zst + - name: Upload .tar.zst archives to GitHub Release + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ steps.version.outputs.tag_name }} + name: Release ${{ steps.version.outputs.tag_name }} + files: | + ../${{ steps.version.outputs.tag_name }}.tar.zst + ../${{ steps.version.outputs.short_tag }}.tar.zst + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}