File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments