Harden cross-build packaging and compiler setup
This commit is contained in:
@@ -108,7 +108,22 @@ jobs:
|
|||||||
ARCHIVE="/tmp/peya-${REF_NAME}-${{ matrix.toolchain.host }}.zip"
|
ARCHIVE="/tmp/peya-${REF_NAME}-${{ matrix.toolchain.host }}.zip"
|
||||||
|
|
||||||
cd "build/${{ matrix.toolchain.host }}/release/bin"
|
cd "build/${{ matrix.toolchain.host }}/release/bin"
|
||||||
zip -ur "${ARCHIVE}" peyad* peya-wallet-cli* peya-wallet-rpc* peya-gen-multisig*
|
FILES=()
|
||||||
|
|
||||||
|
for pattern in peyad* peya-wallet-cli* peya-wallet-rpc* peya-gen-multisig*; do
|
||||||
|
for file in $pattern; do
|
||||||
|
if [ -e "$file" ]; then
|
||||||
|
FILES+=("$file")
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ "${#FILES[@]}" -eq 0 ]; then
|
||||||
|
echo "No release binaries found in $(pwd)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
zip -ur "${ARCHIVE}" "${FILES[@]}"
|
||||||
ls -lh "${ARCHIVE}"
|
ls -lh "${ARCHIVE}"
|
||||||
|
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
|
|||||||
Reference in New Issue
Block a user