Skip to content

Commit b2edaef

Browse files
committed
Merge origin/main into fix/swift-init-extraction
Signed-off-by: Martin Vogel <[email protected]>
2 parents 7b39877 + a5b248f commit b2edaef

51 files changed

Lines changed: 4237 additions & 228 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/dependabot.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,9 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7+
groups:
8+
# init and analyze must run the same CodeQL Action version within a job, and
9+
# upload-sarif is kept in step with them, so one PR bumps all three.
10+
codeql-action:
11+
patterns:
12+
- "github/codeql-action*"

‎.github/workflows/_build.yml‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ jobs:
6666

6767
- name: Install deps (Ubuntu)
6868
if: startsWith(matrix.os, 'ubuntu')
69-
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev
69+
timeout-minutes: 10
70+
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
7071

7172
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
7273
with:
@@ -119,7 +120,7 @@ jobs:
119120
steps:
120121
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
121122

122-
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
123+
- uses: msys2/setup-msys2@ec48f7c5447b3140e2b088413ae3a55687bccb6e # v2
123124
with:
124125
msystem: CLANG64
125126
path-type: inherit
@@ -181,7 +182,7 @@ jobs:
181182
steps:
182183
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
183184

184-
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
185+
- uses: msys2/setup-msys2@ec48f7c5447b3140e2b088413ae3a55687bccb6e # v2
185186
with:
186187
msystem: CLANGARM64
187188
path-type: inherit
@@ -250,7 +251,8 @@ jobs:
250251
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
251252

252253
- name: Install deps
253-
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev
254+
timeout-minutes: 10
255+
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
254256

255257
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
256258
with:

‎.github/workflows/_lint.yml‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,16 @@ jobs:
3737
run: bash scripts/check-no-test-skips.sh
3838

3939
- name: Install build deps
40-
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev cmake
40+
timeout-minutes: 10
41+
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 cmake
4142

4243
- name: Install LLVM 20
44+
timeout-minutes: 10
4345
run: |
4446
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
4547
echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-20 main" | sudo tee /etc/apt/sources.list.d/llvm-20.list
46-
sudo apt-get update
47-
sudo apt-get install -y clang-format-20
48+
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
49+
sudo apt-get -o Acquire::Retries=$APT_RETRIES -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30 install -y clang-format-20
4850
4951
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
5052
id: cppcheck-cache
@@ -81,14 +83,16 @@ jobs:
8183
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
8284

8385
- name: Install build deps
84-
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev
86+
timeout-minutes: 10
87+
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
8588

8689
- name: Install LLVM 21 (pinned analyzer toolchain)
90+
timeout-minutes: 10
8791
run: |
8892
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
8993
echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-21 main" | sudo tee /etc/apt/sources.list.d/llvm-21.list
90-
sudo apt-get update
91-
sudo apt-get install -y clang-tidy-21
94+
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
95+
sudo apt-get -o Acquire::Retries=$APT_RETRIES -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30 install -y clang-tidy-21
9296
9397
- name: Memory-analyzer gate
9498
run: scripts/ci/lint-mem.sh clang-tidy-21

‎.github/workflows/_memwaste.yml‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ jobs:
3737
steps:
3838
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3939
- name: Install deps
40-
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev python3 clang llvm
40+
timeout-minutes: 10
41+
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 python3 clang llvm
4142
- name: Event lane on this repository
4243
run: |
4344
# `cmd | tee` reports TEE's status: without this a failing lane
@@ -66,7 +67,8 @@ jobs:
6667
steps:
6768
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
6869
- name: Install deps
69-
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev python3 clang llvm
70+
timeout-minutes: 10
71+
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 python3 clang llvm
7072
- name: CPU scaling lane (src/ at 2x against 4x)
7173
# Report-only: the script exits 1 when it flags a super-linear function.
7274
continue-on-error: true
@@ -93,7 +95,8 @@ jobs:
9395
steps:
9496
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
9597
- name: Install deps
96-
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev python3 clang llvm
98+
timeout-minutes: 10
99+
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 python3 clang llvm
97100
- name: Access lane on this repository
98101
run: |
99102
# `cmd | tee` reports TEE's status: without this a failing lane
@@ -146,7 +149,7 @@ jobs:
146149
timeout-minutes: 90
147150
steps:
148151
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
149-
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
152+
- uses: msys2/setup-msys2@ec48f7c5447b3140e2b088413ae3a55687bccb6e # v2
150153
with:
151154
msystem: CLANG64
152155
path-type: inherit

‎.github/workflows/_smoke.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,9 @@ jobs:
144144
145145
- name: ClamAV scan (Linux)
146146
if: startsWith(matrix.os, 'ubuntu')
147+
timeout-minutes: 10
147148
run: |
148-
sudo apt-get update -qq && sudo apt-get install -y -qq clamav > /dev/null 2>&1
149+
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 -qq && sudo apt-get -o Acquire::Retries=$APT_RETRIES -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30 install -y -qq clamav > /dev/null 2>&1
149150
# apt auto-starts the clamav-freshclam daemon, which holds a lock on
150151
# freshclam's log/db; stop it so the manual freshclam below can run
151152
# (else: "Failed to lock the log file ... Resource temporarily unavailable").
@@ -191,7 +192,7 @@ jobs:
191192
go-version-file: pkg/go/go.mod
192193
cache: false
193194

194-
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
195+
- uses: msys2/setup-msys2@ec48f7c5447b3140e2b088413ae3a55687bccb6e # v2
195196
with:
196197
msystem: ${{ matrix.arch == 'arm64' && 'CLANGARM64' || 'CLANG64' }}
197198
path-type: inherit

‎.github/workflows/_soak.yml‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ jobs:
6666
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
6767
- name: Install deps (Linux)
6868
if: startsWith(matrix.os, 'ubuntu')
69-
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev python3 git
69+
timeout-minutes: 10
70+
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 python3 git
7071
- name: Build
7172
if: ${{ !inputs.use_release_artifacts }}
7273
run: scripts/build.sh ${{ inputs.version && format('--version {0}', inputs.version) || '' }} CC=${{ matrix.cc }} CXX=${{ matrix.cxx }}
@@ -118,7 +119,7 @@ jobs:
118119
steps:
119120
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
120121

121-
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
122+
- uses: msys2/setup-msys2@ec48f7c5447b3140e2b088413ae3a55687bccb6e # v2
122123
with:
123124
msystem: CLANG64
124125
path-type: inherit
@@ -196,7 +197,7 @@ jobs:
196197
steps:
197198
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
198199

199-
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
200+
- uses: msys2/setup-msys2@ec48f7c5447b3140e2b088413ae3a55687bccb6e # v2
200201
with:
201202
msystem: CLANGARM64
202203
path-type: inherit
@@ -283,7 +284,8 @@ jobs:
283284
steps:
284285
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
285286
- name: Install soak dependencies
286-
run: sudo apt-get update && sudo apt-get install -y python3 git
287+
timeout-minutes: 10
288+
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 python3 git
287289
- name: Download selected portable release container
288290
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
289291
with:
@@ -356,7 +358,8 @@ jobs:
356358
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
357359
- name: Install deps (Linux)
358360
if: startsWith(matrix.os, 'ubuntu')
359-
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev python3 git
361+
timeout-minutes: 10
362+
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 python3 git
360363
- name: Build (ASan)
361364
run: |
362365
SANITIZE="-fsanitize=address,undefined -fno-omit-frame-pointer"
@@ -386,7 +389,7 @@ jobs:
386389
steps:
387390
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
388391

389-
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
392+
- uses: msys2/setup-msys2@ec48f7c5447b3140e2b088413ae3a55687bccb6e # v2
390393
with:
391394
msystem: CLANG64
392395
path-type: inherit

‎.github/workflows/_test.yml‎

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ jobs:
169169

170170
- name: Install deps (Ubuntu)
171171
if: startsWith(matrix.os, 'ubuntu')
172-
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev ccache
172+
timeout-minutes: 10
173+
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 ccache
173174

174175
# Ubuntu 23.10+ ships kernel.apparmor_restrict_unprivileged_userns=1, which
175176
# blocks unshare(CLONE_NEWUSER) for unprivileged users. Without this, the
@@ -370,14 +371,16 @@ jobs:
370371
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
371372

372373
- name: Install deps
373-
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev ccache
374+
timeout-minutes: 10
375+
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 ccache
374376

375377
- name: Install LLVM 21 (pinned diagnostic toolchain)
378+
timeout-minutes: 10
376379
run: |
377380
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
378381
echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-21 main" | sudo tee /etc/apt/sources.list.d/llvm-21.list
379-
sudo apt-get update
380-
sudo apt-get install -y clang-21
382+
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
383+
sudo apt-get -o Acquire::Retries=$APT_RETRIES -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30 install -y clang-21
381384
382385
- name: Compiler cache (content-verified, restore)
383386
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
@@ -528,7 +531,8 @@ jobs:
528531

529532
- name: Install deps (Ubuntu)
530533
if: runner.os == 'Linux'
531-
run: sudo apt-get update && sudo apt-get install -y clang zlib1g-dev ccache
534+
timeout-minutes: 10
535+
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 clang zlib1g-dev ccache
532536

533537
- name: Install deps (macOS)
534538
if: runner.os == 'macOS'
@@ -590,7 +594,7 @@ jobs:
590594
# preflight script, so AV-interaction coverage lives there; runners run
591595
# without RTP by platform constraint.
592596

593-
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
597+
- uses: msys2/setup-msys2@ec48f7c5447b3140e2b088413ae3a55687bccb6e # v2
594598
with:
595599
msystem: ${{ matrix.msystem }}
596600
path-type: inherit
@@ -742,7 +746,7 @@ jobs:
742746
steps:
743747
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
744748

745-
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
749+
- uses: msys2/setup-msys2@ec48f7c5447b3140e2b088413ae3a55687bccb6e # v2
746750
with:
747751
msystem: CLANG64
748752
path-type: inherit

‎.github/workflows/bug-repro.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ jobs:
5555

5656
- name: Install deps (Ubuntu)
5757
if: startsWith(matrix.os, 'ubuntu')
58-
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev
58+
timeout-minutes: 10
59+
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
5960

6061
- name: Run bug-reproduction board
6162
if: ${{ github.event_name == 'push' || inputs.platforms == 'all' || inputs.platforms == matrix.group }}
@@ -68,7 +69,7 @@ jobs:
6869
steps:
6970
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
7071

71-
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
72+
- uses: msys2/setup-msys2@ec48f7c5447b3140e2b088413ae3a55687bccb6e # v2
7273
with:
7374
msystem: CLANG64
7475
path-type: inherit

‎.github/workflows/cache-warm.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636

3737
- name: Install deps (Ubuntu)
3838
if: startsWith(matrix.os, 'ubuntu')
39-
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev ccache
39+
timeout-minutes: 10
40+
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 ccache
4041

4142
- name: Install ccache (macOS)
4243
if: startsWith(matrix.os, 'macos')
@@ -81,7 +82,7 @@ jobs:
8182
steps:
8283
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
8384

84-
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
85+
- uses: msys2/setup-msys2@ec48f7c5447b3140e2b088413ae3a55687bccb6e # v2
8586
with:
8687
msystem: CLANG64
8788
path-type: inherit

‎.github/workflows/codeql.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ jobs:
9595

9696
- name: Install build dependencies
9797
if: ${{ matrix.language == 'c-cpp' }}
98-
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev
98+
timeout-minutes: 10
99+
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
99100

100101
# PR c-cpp: compile the third-party objects (tree-sitter grammars,
101102
# sqlite, mimalloc, lz4, zstd, the tree-sitter runtime: ~1.3 GB of
@@ -113,7 +114,7 @@ jobs:
113114
run: scripts/ci/codeql-retrace-vendored.sh "$RUNNER_TEMP/codeql-retrace.txt"
114115

115116
- name: Initialize CodeQL
116-
uses: github/codeql-action/init@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4.38.1
117+
uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4
117118
with:
118119
languages: ${{ matrix.language }}
119120
build-mode: ${{ matrix.build-mode }}
@@ -128,7 +129,7 @@ jobs:
128129
run: scripts/build.sh --reuse-vendored --retrace-from "$RUNNER_TEMP/codeql-retrace.txt"
129130

130131
- name: Perform CodeQL Analysis
131-
uses: github/codeql-action/analyze@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4.38.1
132+
uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4
132133
with:
133134
category: "/language:${{ matrix.language }}"
134135

0 commit comments

Comments
 (0)