|
35 | 35 | fail-fast: false |
36 | 36 | # platforms=linux drops the darwin legs; the default keeps all four. |
37 | 37 | matrix: |
38 | | - include: ${{ fromJSON(inputs.platforms == 'linux' && '[{"os":"ubuntu-latest","goos":"linux","goarch":"amd64","cc":"gcc","cxx":"g++"},{"os":"ubuntu-24.04-arm","goos":"linux","goarch":"arm64","cc":"gcc","cxx":"g++"}]' || '[{"os":"ubuntu-latest","goos":"linux","goarch":"amd64","cc":"gcc","cxx":"g++"},{"os":"ubuntu-24.04-arm","goos":"linux","goarch":"arm64","cc":"gcc","cxx":"g++"},{"os":"macos-14","goos":"darwin","goarch":"arm64","cc":"cc","cxx":"c++"},{"os":"macos-15-intel","goos":"darwin","goarch":"amd64","cc":"cc","cxx":"c++"}]') }} |
| 38 | + include: ${{ fromJSON(inputs.platforms == 'linux' && '[{"os":"ubuntu-latest","goos":"linux","goarch":"amd64","cc":"gcc","cxx":"g++"},{"os":"ubuntu-24.04-arm","goos":"linux","goarch":"arm64","cc":"gcc","cxx":"g++"}]' || '[{"os":"ubuntu-latest","goos":"linux","goarch":"amd64","cc":"gcc","cxx":"g++"},{"os":"ubuntu-24.04-arm","goos":"linux","goarch":"arm64","cc":"gcc","cxx":"g++"},{"os":"macos-15","goos":"darwin","goarch":"arm64","cc":"cc","cxx":"c++"},{"os":"macos-15-intel","goos":"darwin","goarch":"amd64","cc":"cc","cxx":"c++"}]') }} |
39 | 39 | runs-on: ${{ matrix.os }} |
40 | 40 | # Every leg is BLOCKING — no continue-on-error. The darwin-amd64 binary |
41 | 41 | # built on macos-15-intel must ship with every release; if that runner is |
|
49 | 49 |
|
50 | 50 | - name: Install deps (Ubuntu) |
51 | 51 | if: startsWith(matrix.os, 'ubuntu') |
52 | | - run: sudo apt-get update && sudo apt-get install -y zlib1g-dev |
| 52 | + timeout-minutes: 10 |
| 53 | + run: APT_RETRIES=3; [ -f /etc/apt/apt-mirrors.txt ] && APT_RETRIES=0; sudo apt-get -o Acquire::Retries=$APT_RETRIES -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30 --error-on=any update && sudo apt-get -o Acquire::Retries=$APT_RETRIES -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30 install -y zlib1g-dev |
53 | 54 |
|
54 | 55 | - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 |
55 | 56 | with: |
@@ -103,7 +104,7 @@ jobs: |
103 | 104 | steps: |
104 | 105 | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
105 | 106 |
|
106 | | - - uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2 |
| 107 | + - uses: msys2/setup-msys2@ec48f7c5447b3140e2b088413ae3a55687bccb6e # v2 |
107 | 108 | with: |
108 | 109 | msystem: CLANG64 |
109 | 110 | path-type: inherit |
@@ -166,7 +167,7 @@ jobs: |
166 | 167 | steps: |
167 | 168 | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
168 | 169 |
|
169 | | - - uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2 |
| 170 | + - uses: msys2/setup-msys2@ec48f7c5447b3140e2b088413ae3a55687bccb6e # v2 |
170 | 171 | with: |
171 | 172 | msystem: CLANGARM64 |
172 | 173 | path-type: inherit |
@@ -235,7 +236,8 @@ jobs: |
235 | 236 | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
236 | 237 |
|
237 | 238 | - name: Install deps |
238 | | - run: sudo apt-get update && sudo apt-get install -y zlib1g-dev |
| 239 | + timeout-minutes: 10 |
| 240 | + run: APT_RETRIES=3; [ -f /etc/apt/apt-mirrors.txt ] && APT_RETRIES=0; sudo apt-get -o Acquire::Retries=$APT_RETRIES -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30 --error-on=any update && sudo apt-get -o Acquire::Retries=$APT_RETRIES -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30 install -y zlib1g-dev |
239 | 241 |
|
240 | 242 | - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 |
241 | 243 | with: |
|
0 commit comments