CI: Upload build artifacts even on build failure
Helpful when CI times out or building a large number of packages for testing and it fails
This commit is contained in:
parent
bb5cf6a7f9
commit
50a98af858
5
.github/workflows/packages.yml
vendored
5
.github/workflows/packages.yml
vendored
@ -137,6 +137,9 @@ jobs:
|
||||
./scripts/run-docker.sh ./build-package.sh -I -a ${{ matrix.target_arch }} $(cat ./built_packages.txt)
|
||||
fi
|
||||
|
||||
- name: Generate build artifacts
|
||||
if: always()
|
||||
run: |
|
||||
mkdir -p debs
|
||||
test -d termux-packages/output && mv termux-packages/output/* ./output/
|
||||
|
||||
@ -158,9 +161,11 @@ jobs:
|
||||
# Archiving *.deb files in a tarball to avoid issues with uploading.
|
||||
tar cf artifacts/debs-${{ matrix.target_arch }}-${{ github.sha }}.tar debs
|
||||
- name: Checksums for built *.deb files
|
||||
if: always()
|
||||
run: |
|
||||
find debs -type f -name "*.deb" -exec sha256sum "{}" \; | sort -k2
|
||||
- name: Store *.deb files
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: termux-packages-${{ matrix.target_arch }}-${{ github.sha }}
|
||||
|
Loading…
Reference in New Issue
Block a user