fix(ci): include version in release tarball filenames

tarballs are now named mcl-{version}-{target}.tar.gz instead of
mcl-{target}.tar.gz so each release has unique filenames. this
prevents package manager caches from serving stale downloads.
This commit is contained in:
objz committed 2026-04-25 15:40:38 +02:00
1 parent 035bae98d9
commit b43ed3e807
2 files changed
+13 -6

No files matched your search

+11 -4
View File
@@ -55,23 +55,30 @@ jobs:
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
run: cargo build --release --target ${{ matrix.target }} run: cargo build --release --target ${{ matrix.target }}
- name: get version
id: version
shell: bash
run: |
version=$(grep '^version' Cargo.toml | head -1 | sed 's/.*"\(.*\)".*/\1/')
echo "version=$version" >> "$GITHUB_OUTPUT"
- name: package (unix) - name: package (unix)
if: runner.os != 'Windows' if: runner.os != 'Windows'
run: | run: |
cd target/${{ matrix.target }}/release cd target/${{ matrix.target }}/release
tar czf ../../../mcl-${{ matrix.target }}.tar.gz ${{ matrix.artifact }} tar czf ../../../mcl-${{ steps.version.outputs.version }}-${{ matrix.target }}.tar.gz ${{ matrix.artifact }}
- name: package (windows) - name: package (windows)
if: runner.os == 'Windows' if: runner.os == 'Windows'
run: | run: |
cd target/${{ matrix.target }}/release cd target/${{ matrix.target }}/release
Compress-Archive -Path ${{ matrix.artifact }} -DestinationPath ../../../mcl-${{ matrix.target }}.zip Compress-Archive -Path ${{ matrix.artifact }} -DestinationPath ../../../mcl-${{ steps.version.outputs.version }}-${{ matrix.target }}.zip
- name: upload artifact - name: upload artifact
uses: actions/upload-artifact@v7 uses: actions/upload-artifact@v7
with: with:
name: mcl-${{ matrix.target }} name: mcl-${{ steps.version.outputs.version }}-${{ matrix.target }}
path: mcl-${{ matrix.target }}.* path: mcl-${{ steps.version.outputs.version }}-${{ matrix.target }}.*
release: release:
needs: build needs: build
+2 -2
View File
@@ -10,8 +10,8 @@ depends=()
provides=('mcl-launcher') provides=('mcl-launcher')
conflicts=('mcl-launcher' 'mcl-launcher-git') conflicts=('mcl-launcher' 'mcl-launcher-git')
source=("LICENSE-${pkgver}::${url}/raw/v${pkgver}/LICENSE" "README-${pkgver}::${url}/raw/v${pkgver}/README.md") source=("LICENSE-${pkgver}::${url}/raw/v${pkgver}/LICENSE" "README-${pkgver}::${url}/raw/v${pkgver}/README.md")
source_x86_64=("${url}/releases/download/v${pkgver}/mcl-x86_64-unknown-linux-gnu.tar.gz") source_x86_64=("${url}/releases/download/v${pkgver}/mcl-${pkgver}-x86_64-unknown-linux-gnu.tar.gz")
source_aarch64=("${url}/releases/download/v${pkgver}/mcl-aarch64-unknown-linux-gnu.tar.gz") source_aarch64=("${url}/releases/download/v${pkgver}/mcl-${pkgver}-aarch64-unknown-linux-gnu.tar.gz")
sha256sums=('SKIP' 'SKIP') sha256sums=('SKIP' 'SKIP')
sha256sums_x86_64=('SKIP') sha256sums_x86_64=('SKIP')
sha256sums_aarch64=('SKIP') sha256sums_aarch64=('SKIP')