mirror of
https://github.com/bartvdbraak/keyweave.git
synced 2025-04-28 07:11:21 +00:00
fix: use dist folder as artifact
This commit is contained in:
parent
bb73a7b245
commit
e0c3eee711
1 changed files with 13 additions and 17 deletions
30
.github/workflows/release.yml
vendored
30
.github/workflows/release.yml
vendored
|
@ -104,7 +104,6 @@ jobs:
|
||||||
|
|
||||||
- uses: taiki-e/setup-cross-toolchain-action@v1
|
- uses: taiki-e/setup-cross-toolchain-action@v1
|
||||||
with:
|
with:
|
||||||
# NB: sets CARGO_BUILD_TARGET evar - do not need --target flag in build
|
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
|
|
||||||
- uses: taiki-e/install-action@cross
|
- uses: taiki-e/install-action@cross
|
||||||
|
@ -117,7 +116,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "${{ needs.pre-check.outputs.version }}" > VERSION
|
echo "${{ needs.pre-check.outputs.version }}" > VERSION
|
||||||
|
|
||||||
- name: Package
|
- name: Archive and Package
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
@ -126,24 +125,19 @@ jobs:
|
||||||
bin="target/${{ matrix.target }}/release/keyweave${ext}"
|
bin="target/${{ matrix.target }}/release/keyweave${ext}"
|
||||||
strip "$bin" || true
|
strip "$bin" || true
|
||||||
dst="keyweave-${{ matrix.target }}"
|
dst="keyweave-${{ matrix.target }}"
|
||||||
mkdir "$dst"
|
mkdir -p "$dst" dist
|
||||||
cp "$bin" "$dst/"
|
cp "$bin" "$dst/"
|
||||||
|
if [[ ${{ !startsWith(matrix.name, 'windows') }} ]] ; then
|
||||||
- name: Archive (tar)
|
tar cavf "$dst.tar.xz" "$dst"
|
||||||
if: '! startsWith(matrix.name, ''windows-'')'
|
mv "$dst.tar.xz" dist/
|
||||||
shell: bash
|
else
|
||||||
run: |
|
mv "$dst/keyweave${ext}" dist/keyweave-${{ matrix.target }}.exe
|
||||||
set -euxo pipefail
|
fi
|
||||||
dst="keyweave-${{ matrix.target }}"
|
|
||||||
tar cavf "$dst.tar.xz" "$dst"
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: builds
|
name: dist-${{ matrix.target }}
|
||||||
retention-days: 1
|
path: dist
|
||||||
path: |
|
|
||||||
keyweave-*.tar.xz
|
|
||||||
keyweave-x86_64-pc-windows-gnu/keyweave.exe
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs: build
|
needs: build
|
||||||
|
@ -165,7 +159,9 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: builds
|
name: dist-*
|
||||||
|
merge-multiple: true
|
||||||
|
path: dist
|
||||||
|
|
||||||
- name: Checksums with SHA512 and SHA256
|
- name: Checksums with SHA512 and SHA256
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue