From 331e0e7f746d79da799df4756154ddb2620ddf13 Mon Sep 17 00:00:00 2001 From: Ana Custura Date: Wed, 14 Jan 2026 17:47:59 +0000 Subject: [PATCH] Add package step --- .github/workflows/ci.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d4433f1e..c0ed71e8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -17,3 +17,13 @@ jobs: with: go-version: '1.25' architecture: 'arm64' + - name: Install ARM64 toolchain + run: sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu + - run: GOOS=linux GOARCH=arm64 CGO_ENABLED=1 CC=aarch64-linux-gnu-gcc go build -o bin/ ./cmd/... + - run: sudo apt update && sudo apt install -y tar + - run: tar cvfz dendrite.tar.gz bin/* + - run: | + curl -H "Authorization: token ${{ secrets.PACKAGE_TOKEN }}" -X DELETE "https://guardianproject.dev/api/packages/butter/generic/dendrite/latest" + - run: | + curl -H "Authorization: token ${{ secrets.PACKAGE_TOKEN }}" -X PUT --upload-file dendrite.tar.gz https://guardianproject.dev/api/packages/butter/generic/dendrite/latest/dendrite.tar.gz +