diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1bf64be..83b1cb0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -94,6 +94,14 @@ jobs: clang clang-devel kernel-headers fi if command -v zypper &> /dev/null; then + # SUSE mirrors briefly serve mismatched repomd.xml signatures while syncing. + ok=0 + for i in 1 2 3 4 5; do + if zypper -n refresh; then ok=1; break; fi + echo "zypper refresh failed (attempt $i), retrying" + sleep $((i * 30)) + done + [ "$ok" = 1 ] zypper install -y libopenssl-3-devel openssl pkg-config bash \ tar xz gzip curl linux-glibc-devel fi diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f05c0a1..8386634 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -316,6 +316,7 @@ build-rpm-suse-15.5_x86_64: stage: build-rpm image: registry.suse.com/suse/sle15:15.5 before_script: + - ok=0; for i in 1 2 3 4 5; do if zypper -n refresh; then ok=1; break; fi; echo "zypper refresh failed (attempt $i), retrying"; sleep $((i * 30)); done; [ "$ok" = 1 ] - zypper install -y libopenssl-3-devel openssl pkg-config bash tar xz gzip curl linux-glibc-devel gcc gcc7 python3 python3-pip - python3 -m pip install --upgrade pip - python3 -m pip install libclang @@ -352,6 +353,7 @@ build-rpm-suse-15.5_aarch64: stage: build-rpm image: registry.suse.com/suse/sle15:15.5 before_script: + - ok=0; for i in 1 2 3 4 5; do if zypper -n refresh; then ok=1; break; fi; echo "zypper refresh failed (attempt $i), retrying"; sleep $((i * 30)); done; [ "$ok" = 1 ] - zypper install -y libopenssl-3-devel openssl pkg-config bash tar xz gzip curl linux-glibc-devel gcc gcc7 python3 python3-pip - python3 -m pip install --upgrade pip - python3 -m pip install libclang @@ -392,6 +394,7 @@ build-rpm-suse-15.7_x86_64: stage: build-rpm image: registry.suse.com/suse/sle15:15.7 before_script: + - ok=0; for i in 1 2 3 4 5; do if zypper -n refresh; then ok=1; break; fi; echo "zypper refresh failed (attempt $i), retrying"; sleep $((i * 30)); done; [ "$ok" = 1 ] - zypper install -y libopenssl-3-devel openssl pkg-config bash tar xz gzip curl linux-glibc-devel gcc gcc7 python3 python3-pip - python3 -m pip install --upgrade pip - python3 -m pip install libclang @@ -428,6 +431,7 @@ build-rpm-suse-15.7_aarch64: stage: build-rpm image: registry.suse.com/suse/sle15:15.7 before_script: + - ok=0; for i in 1 2 3 4 5; do if zypper -n refresh; then ok=1; break; fi; echo "zypper refresh failed (attempt $i), retrying"; sleep $((i * 30)); done; [ "$ok" = 1 ] - zypper install -y libopenssl-3-devel openssl pkg-config bash tar xz gzip curl linux-glibc-devel gcc gcc7 python3 python3-pip - python3 -m pip install --upgrade pip - python3 -m pip install libclang