From 63bdc8d76d889e4c7a2486f87c34e18bf4f341d3 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Sun, 1 Mar 2026 14:15:41 +0000 Subject: [PATCH] Add vendored sources to CI packaging workflow --- .github/workflows/pkg.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/pkg.yml b/.github/workflows/pkg.yml index 90fbdcb2..903415f8 100644 --- a/.github/workflows/pkg.yml +++ b/.github/workflows/pkg.yml @@ -8,6 +8,35 @@ concurrency: cancel-in-progress: true jobs: + build-vendored-sources: + name: Vendored Sources + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - name: Set up Go + uses: actions/setup-go@v6 + with: + go-version: "stable" + + - name: Build archive + run: | + NAME="$(sh contrib/semver/name.sh)" + VERSION="$(sh contrib/semver/version.sh --bare)" + go mod vendor && tar --exclude-vcs --no-xattrs \ + --exclude="${NAME}-${VERSION}-vendored.tar.gz" \ + -czf "${NAME}-${VERSION}-vendored.tar.gz" * + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: Vendored sources + path: "*.tar.gz" + if-no-files-found: error + build-packages-debian: strategy: fail-fast: false