Skip to content

Commit

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.

syntaqxcommitted Parentf79d098Browse files
2 files+14−40/2 viewed
+7−2
106106 steps:
107107 - uses: actions/checkout@v5
108108 - name: What Tauri needs on Linux
109+ # Tried three times: the mirror has answered with a mismatched package before.
109110 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 ]
112117 - uses: actions/cache@v4
113118 with:
114119 path: |
+7−2
6464 steps:
6565 - uses: actions/checkout@v5
6666 - 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.
6768 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 ]
7075 cargo install --locked cargo-xwin
7176 - uses: actions/cache@v4
7277 with: