diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ff0b895..dacec28 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -485,7 +485,9 @@ jobs: include: - target: x86_64-pc-windows-msvc - target: aarch64-pc-windows-msvc + - target: i686-pc-windows-msvc - target: x86_64-pc-windows-gnu + - target: i686-pc-windows-gnu steps: - uses: actions/checkout@v4 with: @@ -656,10 +658,22 @@ jobs: shell: bash run: | set -euo pipefail - BIN_URL="https://github.com/dexoron/dcr/releases/download/${{ needs.setup.outputs.tag }}/dcr-x86_64-unknown-linux-musl-${{ needs.setup.outputs.version }}" - SHA256="$(curl -fsSL "$BIN_URL" | sha256sum | awk '{print $1}')" - echo "bin_url=$BIN_URL" >> "$GITHUB_OUTPUT" - echo "sha256=$SHA256" >> "$GITHUB_OUTPUT" + TAG="${{ needs.setup.outputs.tag }}" + VER="${{ needs.setup.outputs.version }}" + BASE_URL="https://github.com/dexoron/dcr/releases/download/${TAG}" + for arch in x86_64 aarch64 i686 armv7h riscv64; do + case "$arch" in + x86_64) triple="x86_64-unknown-linux-musl" ;; + aarch64) triple="aarch64-unknown-linux-musl" ;; + i686) triple="i686-unknown-linux-musl" ;; + armv7h) triple="armv7-unknown-linux-musleabihf" ;; + riscv64) triple="riscv64gc-unknown-linux-musl" ;; + esac + url="${BASE_URL}/dcr-${triple}-${VER}" + sha256="$(curl -fsSL "$url" | sha256sum | awk '{print $1}')" + echo "${arch}_url=${url}" >> "$GITHUB_OUTPUT" + echo "${arch}_sha256=${sha256}" >> "$GITHUB_OUTPUT" + done - name: Render AUR Metadata shell: bash @@ -667,16 +681,13 @@ jobs: set -euo pipefail PKGVER_ORIG='${{ needs.setup.outputs.version }}' PKGVER_CLEAN="${PKGVER_ORIG//-/.}" - BIN_URL='${{ steps.meta.outputs.bin_url }}' - SHA256='${{ steps.meta.outputs.sha256 }}' - mkdir -p packages/aur/dcr-bin cat > packages/aur/dcr-bin/PKGBUILD <> "$GITHUB_OUTPUT" - echo "sha256=$SHA256" >> "$GITHUB_OUTPUT" + TAG="${{ needs.setup.outputs.tag }}" + VER="${{ needs.setup.outputs.version }}" + BASE_URL="https://github.com/dexoron/dcr/releases/download/${TAG}" + for arch in x86_64 aarch64 i686 armv7h riscv64; do + case "$arch" in + x86_64) triple="x86_64-unknown-linux-musl" ;; + aarch64) triple="aarch64-unknown-linux-musl" ;; + i686) triple="i686-unknown-linux-musl" ;; + armv7h) triple="armv7-unknown-linux-musleabihf" ;; + riscv64) triple="riscv64gc-unknown-linux-musl" ;; + esac + url="${BASE_URL}/dcr-${triple}-${VER}" + sha256="$(curl -fsSL "$url" | sha256sum | awk '{print $1}')" + echo "${arch}_url=${url}" >> "$GITHUB_OUTPUT" + echo "${arch}_sha256=${sha256}" >> "$GITHUB_OUTPUT" + done - name: Render AUR Metadata shell: bash @@ -902,16 +945,13 @@ jobs: set -euo pipefail PKGVER_ORIG='${{ needs.setup.outputs.version }}' PKGVER_CLEAN='${{ needs.setup.outputs.clean_version }}' - BIN_URL='${{ steps.meta.outputs.bin_url }}' - SHA256='${{ steps.meta.outputs.sha256 }}' - mkdir -p packages/aur/dcr-dev-bin cat > packages/aur/dcr-dev-bin/PKGBUILD <