diff --git a/.github/workflows/zstd.yml b/.github/workflows/zstd.yml new file mode 100644 index 000000000..fb50c900e --- /dev/null +++ b/.github/workflows/zstd.yml @@ -0,0 +1,11 @@ +name: zstd + +on: [pull_request, workflow_dispatch] + +jobs: + alpine-musl: + if: ${{ vars.CURRENT_TOOL == github.workflow }} + uses: ./.github/workflows/build-alpine.yml + with: + workflow: ${{ github.workflow }} + version: 3.16.6 diff --git a/zstd/build_musl.sh b/zstd/build_musl.sh new file mode 100755 index 000000000..0d8d59f8e --- /dev/null +++ b/zstd/build_musl.sh @@ -0,0 +1,27 @@ +#!/bin/bash +dp0="$(realpath "$(dirname "$0")")" +set -e + +echo "::group::install deps" + +apk update +apk add --no-cache alpine-sdk zlib-dev zlib-static xz-dev zstd-dev zstd-static + +echo "::endgroup::" + +tool_name="zstd" +tool_version="1.5.5" +self_toolset_name="build-musl" + +download_url="https://github.com/facebook/zstd/archive/refs/tags/v$tool_version.tar.gz" +echo "::group::prepare sources $download_url" + +mkdir -p "$dp0/release" && cd "$dp0/release" +wget "$download_url" -O "libarchive-$tool_version.tar.gz" +tar -xf "libarchive-$tool_version.tar.gz" && cd "libarchive-$tool_version" + +echo "::endgroup::" + +echo "::group::build" + +make