|
32 | 32 | with: |
33 | 33 | components: clippy |
34 | 34 | - name: Install build dependencies |
35 | | - run: sudo apt-get update && sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential libssl-dev libayatana-appindicator3-dev librsvg2-dev |
| 35 | + run: | |
| 36 | + # Mirrors can briefly 404 a package just replaced by an update; refresh and retry. |
| 37 | + for attempt in 1 2 3; do |
| 38 | + sudo apt-get update && sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential libssl-dev libayatana-appindicator3-dev librsvg2-dev && exit 0 |
| 39 | + echo "apt attempt $attempt failed; retrying in 30 seconds" >&2 |
| 40 | + sleep 30 |
| 41 | + done |
| 42 | + exit 1 |
36 | 43 | - name: Install checksum-pinned Restic for restore integration tests |
37 | 44 | run: | |
38 | 45 | curl -fsSL https://github.com/restic/restic/releases/download/v0.19.1/restic_0.19.1_linux_amd64.bz2 -o /tmp/restic-ci.bz2 |
|
54 | 61 | DEBIAN_FRONTEND: noninteractive |
55 | 62 | steps: |
56 | 63 | - name: Install build tools |
57 | | - run: apt-get update && apt-get install -y curl ca-certificates git build-essential pkg-config file libssl-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev patchelf python3 binutils libarchive-tools |
| 64 | + run: | |
| 65 | + # Mirrors can briefly 404 a package just replaced by an update; refresh and retry. |
| 66 | + for attempt in 1 2 3; do |
| 67 | + apt-get update && apt-get install -y curl ca-certificates git build-essential pkg-config file libssl-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev patchelf python3 binutils libarchive-tools && exit 0 |
| 68 | + echo "apt attempt $attempt failed; retrying in 30 seconds" >&2 |
| 69 | + sleep 30 |
| 70 | + done |
| 71 | + exit 1 |
58 | 72 | - uses: actions/checkout@v4 |
59 | 73 | - uses: actions/setup-node@v4 |
60 | 74 | with: |
@@ -90,7 +104,14 @@ jobs: |
90 | 104 | - name: Verify checksums |
91 | 105 | run: cd packages && sha256sum --check SHA256SUMS |
92 | 106 | - name: Install package and launch-test tools |
93 | | - run: apt-get update && apt-get install -y ./packages/*.deb xvfb xauth dbus dbus-x11 libnotify-bin |
| 107 | + run: | |
| 108 | + # Mirrors can briefly 404 a package just replaced by an update; refresh and retry. |
| 109 | + for attempt in 1 2 3; do |
| 110 | + apt-get update && apt-get install -y ./packages/*.deb xvfb xauth dbus dbus-x11 libnotify-bin && exit 0 |
| 111 | + echo "apt attempt $attempt failed; retrying in 30 seconds" >&2 |
| 112 | + sleep 30 |
| 113 | + done |
| 114 | + exit 1 |
94 | 115 | - name: Launch installed application as a normal user |
95 | 116 | run: useradd -m smoke && runuser -u smoke -- bash scripts/smoke-desktop.sh /usr/bin/command-center |
96 | 117 |
|
|
0 commit comments