Skip to content

Commit

Permalink
chore: Add a source tarball deploy workflow.
Browse files Browse the repository at this point in the history
This builds the autotools files (configure, etc.) so people can build
the code without needing to install autotools.
  • Loading branch information
iphydf committed Feb 15, 2025
1 parent 4adebe4 commit 6e0a641
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -338,3 +338,21 @@ jobs:
run: |
other/deploy/single-file/make_single_file -av >toxcore-av.c
other/deploy/single-file/make_single_file -core >toxcore-core.c
build-tarball:
name: Source tarball
needs: [prepare]
uses: TokTok/ci-tools/.github/workflows/deploy-artifact.yml@master
with:
project-name: toxcore
artifact-source: tox-*.tar.{gz,xz}
artifact-versioned: $VERSION.tar.{gz,xz}
build: tarball
run: |
sudo apt-get install -y --no-install-recommends libsodium-dev
autoreconf -fi
./configure
make dist
for f in tox-*.tar.gz; do
gunzip -c "$f" | xz -z - >"${f%.gz}.xz"
done

0 comments on commit 6e0a641

Please sign in to comment.