mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 10:54:35 +03:00
CI: Disable ZIP file artifacts, update versions
The GH artifacts action now lets you disable auto-zipping your artifacts. Previously, GH would always automatically put your artifacts in a ZIP file. This is annoying when your artifacts are already in a tarball. Also update the following action versions checkout: v4 -> v6 upload-artifact: v4 -> v7 download-artifact: v4 -> v8 Lastly, fix a issue where zfs-qmeu-packages now needs to power cycle the VM. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes #18411
This commit is contained in:
@@ -13,16 +13,29 @@ source env.txt
|
||||
|
||||
mkdir -p $RESPATH
|
||||
|
||||
TARNAME=qemu-$OS
|
||||
|
||||
# check if building the module has failed
|
||||
if [ -z ${VMs:-} ]; then
|
||||
cd $RESPATH
|
||||
echo ":exclamation: ZFS module didn't build successfully :exclamation:" \
|
||||
| tee summary.txt | tee /tmp/summary.txt
|
||||
cp /var/tmp/*.txt .
|
||||
tar cf /tmp/qemu-$OS.tar -C $RESPATH -h . || true
|
||||
|
||||
# rename /var/tmp/test_results to /var/tmp/qemu-$OS
|
||||
mv $RESPATH $(dirname $RESPATH)/$TARNAME
|
||||
tar cjf /tmp/$TARNAME.tar.bz2 -C $(dirname $RESPATH) -h $TARNAME || true
|
||||
# move it back to /var/tmp/test_results (needed for next script)
|
||||
mv $(dirname $RESPATH)/$TARNAME $RESPATH
|
||||
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if ! grep -q vm /etc/hosts ; then
|
||||
echo "No vm* hostnames, VMs probably didn't startup"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# build was okay
|
||||
BASE="$HOME/work/zfs/zfs"
|
||||
MERGE="$BASE/.github/workflows/scripts/merge_summary.awk"
|
||||
@@ -121,4 +134,9 @@ if [ ! -s uname.txt ]; then
|
||||
fi
|
||||
|
||||
# artifact ready now
|
||||
tar cf /tmp/qemu-$OS.tar -C $RESPATH -h . || true
|
||||
#
|
||||
# rename /var/tmp/test_results to /var/tmp/qemu-$OS
|
||||
mv $RESPATH $(dirname $RESPATH)/$TARNAME
|
||||
tar cjf /tmp/$TARNAME.tar.bz2 -C $(dirname $RESPATH) -h $TARNAME || true
|
||||
# move it back to /var/tmp/test_results (needed for next script)
|
||||
mv $(dirname $RESPATH)/$TARNAME $RESPATH
|
||||
|
||||
Reference in New Issue
Block a user