Skip to content

Commit e55807b

Browse files
committed
Fix workflow
1 parent 94ffff6 commit e55807b

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/mainline-test.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,21 @@ jobs:
3333
path: artifacts/
3434

3535
- name: Extract and run tarballs
36+
shell: bash
3637
run: |
37-
if [ "${{ matrix.image }}" == "debian:stable" ]; then
38+
if [[ "${{ matrix.image }}" == "debian:stable" ]]; then
3839
apt update && apt install unzip -y
39-
elif [ "${{ matrix.image }}" == "fedora:latest" ]; then
40+
elif [[ "${{ matrix.image }}" == "fedora:latest" ]]; then
4041
dnf update -y && dnf install unzip -y
4142
else
4243
pacman -Sy --noconfirm && pacman -S unzip --noconfirm
4344
fi
44-
for archive in artifacts/*.tar.gz; do
45-
mkdir unpacked
45+
for archive in artifacts/*.zip; do
46+
mkdir -p unpacked
4647
unzip -q "$archive" -d unpacked
47-
tar -xpf "unpacked/$archive" -C / --overwrite
48+
for subarchive in unpacked/*; do
49+
tar -xpf "$subarchive" -C / --overwrite
50+
done
4851
for f in /opt/hcpu/tests/*; do
4952
[ -f "$f" ] && [ -x "$f" ] && "$f"
5053
done

0 commit comments

Comments
 (0)