fix(ci): retry Arch package installation
- commit
- 1ca6e0a4b72e33b55594c9988f09163f4f1232a6
- author
- brice · · 2026-08-18 05:18 UTC
- parent
- 14d539b
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
1 file · +18 -4
M .github/workflows/ci.yml +18 -4
| @@ -54,8 +54,15 @@ jobs: | |||
| 54 | 54 | steps: | |
| 55 | 55 | - name: Install dependencies | |
| 56 | 56 | run: | | |
| 57 | - | pacman -Syu --noconfirm | |
| 58 | - | pacman -S --noconfirm git go webkitgtk-6.0 gtk4 gtk4-layer-shell gobject-introspection base-devel brotli | |
| 57 | + | for attempt in 1 2 3; do | |
| 58 | + | if pacman -Syu --noconfirm && pacman -S --noconfirm git go webkitgtk-6.0 gtk4 gtk4-layer-shell gobject-introspection base-devel brotli; then | |
| 59 | + | exit 0 | |
| 60 | + | fi | |
| 61 | + | if [ "$attempt" -eq 3 ]; then | |
| 62 | + | exit 1 | |
| 63 | + | fi | |
| 64 | + | sleep 5 | |
| 65 | + | done | |
| 59 | 66 | - uses: actions/checkout@v7.0.1 | |
| 60 | 67 | - name: Allow git commands in container checkout | |
| 61 | 68 | run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| @@ -98,8 +105,15 @@ jobs: | |||
| 98 | 105 | steps: | |
| 99 | 106 | - name: Install dependencies | |
| 100 | 107 | run: | | |
| 101 | - | pacman -Syu --noconfirm | |
| 102 | - | pacman -S --noconfirm git go webkitgtk-6.0 gtk4 gtk4-layer-shell libadwaita gobject-introspection base-devel brotli dbus | |
| 108 | + | for attempt in 1 2 3; do | |
| 109 | + | if pacman -Syu --noconfirm && pacman -S --noconfirm git go webkitgtk-6.0 gtk4 gtk4-layer-shell libadwaita gobject-introspection base-devel brotli dbus; then | |
| 110 | + | exit 0 | |
| 111 | + | fi | |
| 112 | + | if [ "$attempt" -eq 3 ]; then | |
| 113 | + | exit 1 | |
| 114 | + | fi | |
| 115 | + | sleep 5 | |
| 116 | + | done | |
| 103 | 117 | - uses: actions/checkout@v7.0.1 | |
| 104 | 118 | - name: Set up pinned Go toolchain | |
| 105 | 119 | uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e | |
| @@ -54,8 +54,15 @@ jobs: | |||||
| 54 | steps: | 54 | steps: | ||
| 55 | - name: Install dependencies | 55 | - name: Install dependencies | ||
| 56 | run: | | 56 | run: | | ||
| 57 | - | pacman -Syu --noconfirm | 57 | + | for attempt in 1 2 3; do |
| 58 | - | pacman -S --noconfirm git go webkitgtk-6.0 gtk4 gtk4-layer-shell gobject-introspection base-devel brotli | 58 | + | if pacman -Syu --noconfirm && pacman -S --noconfirm git go webkitgtk-6.0 gtk4 gtk4-layer-shell gobject-introspection base-devel brotli; then |
| 59 | + | exit 0 | |||
| 60 | + | fi | |||
| 61 | + | if [ "$attempt" -eq 3 ]; then | |||
| 62 | + | exit 1 | |||
| 63 | + | fi | |||
| 64 | + | sleep 5 | |||
| 65 | + | done | |||
| 59 | - uses: actions/checkout@v7.0.1 | 66 | - uses: actions/checkout@v7.0.1 | ||
| 60 | - name: Allow git commands in container checkout | 67 | - name: Allow git commands in container checkout | ||
| 61 | run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | 68 | run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
| @@ -98,8 +105,15 @@ jobs: | |||||
| 98 | steps: | 105 | steps: | ||
| 99 | - name: Install dependencies | 106 | - name: Install dependencies | ||
| 100 | run: | | 107 | run: | | ||
| 101 | - | pacman -Syu --noconfirm | 108 | + | for attempt in 1 2 3; do |
| 102 | - | pacman -S --noconfirm git go webkitgtk-6.0 gtk4 gtk4-layer-shell libadwaita gobject-introspection base-devel brotli dbus | 109 | + | if pacman -Syu --noconfirm && pacman -S --noconfirm git go webkitgtk-6.0 gtk4 gtk4-layer-shell libadwaita gobject-introspection base-devel brotli dbus; then |
| 110 | + | exit 0 | |||
| 111 | + | fi | |||
| 112 | + | if [ "$attempt" -eq 3 ]; then | |||
| 113 | + | exit 1 | |||
| 114 | + | fi | |||
| 115 | + | sleep 5 | |||
| 116 | + | done | |||
| 103 | - uses: actions/checkout@v7.0.1 | 117 | - uses: actions/checkout@v7.0.1 | ||
| 104 | - name: Set up pinned Go toolchain | 118 | - name: Set up pinned Go toolchain | ||
| 105 | uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e | 119 | uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e | ||