Installing what Tauri needs on Linux is tried three times, in CI and in the desktop release: the mirror answered with a mismatched package once and the whole job fell with it.
2 files+14−40/2 viewed
| 106 | 106 | steps: | |
| 107 | 107 | - uses: actions/checkout@v5 | |
| 108 | 108 | - name: What Tauri needs on Linux | |
| 109 | + | # Tried three times: the mirror has answered with a mismatched package before. | |
| 109 | 110 | run: | | |
| 110 | − | sudo apt-get update | |
| 111 | − | sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev | |
| 111 | + | ok=0 | |
| 112 | + | for try in 1 2 3; do | |
| 113 | + | if sudo apt-get update && sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev; then ok=1; break; fi | |
| 114 | + | sudo apt-get clean; sleep 15 | |
| 115 | + | done | |
| 116 | + | [ "$ok" = 1 ] | |
| 112 | 117 | - uses: actions/cache@v4 | |
| 113 | 118 | with: | |
| 114 | 119 | path: | |
| 64 | 64 | steps: | |
| 65 | 65 | - uses: actions/checkout@v5 | |
| 66 | 66 | - name: What Tauri needs on Linux, and to build Windows from here | |
| 67 | + | # Tried three times: the mirror has answered with a mismatched package before. | |
| 67 | 68 | run: | | |
| 68 | − | sudo apt-get update | |
| 69 | − | sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev nsis lld llvm | |
| 69 | + | ok=0 | |
| 70 | + | for try in 1 2 3; do | |
| 71 | + | if sudo apt-get update && sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev nsis lld llvm; then ok=1; break; fi | |
| 72 | + | sudo apt-get clean; sleep 15 | |
| 73 | + | done | |
| 74 | + | [ "$ok" = 1 ] | |
| 70 | 75 | cargo install --locked cargo-xwin | |
| 71 | 76 | - uses: actions/cache@v4 | |
| 72 | 77 | with: |