Skip to content

feat: enable IPv6 DHT and peer support, bump version to 1.0.6 #36

feat: enable IPv6 DHT and peer support, bump version to 1.0.6

feat: enable IPv6 DHT and peer support, bump version to 1.0.6 #36

Workflow file for this run

name: release build
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
if: github.repository_owner == 'OctopusTakopi'
name: Build ${{ matrix.os }}-${{ matrix.arch }}${{ matrix.suffix }}
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- os: linux
arch: amd64
suffix: _static
extra: static
pkg: gzip
runner: ubuntu-latest
- os: linux
arch: arm64
suffix: ""
extra: ""
pkg: gzip
runner: ubuntu-24.04-arm
- os: windows
arch: amd64
suffix: ""
extra: ""
pkg: zip
runner: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu mingw-w64 musl-tools gzip zip curl git perl make libssl-dev pkg-config
- name: Check out code
uses: actions/checkout@v4
- name: Install Rust targets
run: |
rustup target add x86_64-unknown-linux-musl || true
rustup target add aarch64-unknown-linux-gnu || true
rustup target add x86_64-pc-windows-gnu || true
rustup target add wasm32-unknown-unknown
- name: Install Trunk
run: |
ARCH=$(uname -m)
case "${ARCH}" in
x86_64) TRUNK_ARCH="x86_64" ;;
aarch64) TRUNK_ARCH="aarch64" ;;
*) TRUNK_ARCH="x86_64" ;;
esac
curl -L "https://github.com/thedodd/trunk/releases/download/v0.21.14/trunk-${TRUNK_ARCH}-unknown-linux-gnu.tar.gz" \
| tar -xzf- -C /usr/local/bin
- name: Build and Package
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
bash scripts/make_release.sh ${{ matrix.os }} ${{ matrix.arch }} ${{ matrix.extra }} ${{ matrix.pkg }}
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: release-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.suffix }}
path: release/
retention-days: 1
release:
name: Create Release
needs: build
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: release
pattern: release-*
merge-multiple: true
- name: Generate Git Log
run: |
echo "Current Tag: ${GITHUB_REF}"
GITVER=$(git describe --tags --always)
PREVVER=$(git describe --tags --abbrev=0 ${GITVER}~1 2>/dev/null || echo "")
if [ -n "$PREVVER" ]; then
git log --oneline ${PREVVER}..${GITVER} | tee -a gittaglogs.txt
else
git log --oneline | tee -a gittaglogs.txt
fi
- name: Debug Artifacts
run: ls -la release/
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: release/*
prerelease: false
draft: true
body_path: gittaglogs.txt
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}