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:
Yaksh Bariya 2022-03-30 08:20:03 +05:30
parent bb5cf6a7f9
commit 50a98af858
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
1 changed files with 5 additions and 0 deletions

View File

@ -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 }}