Skip to content

Commit 179fa4f

Browse files
committed
Add verify mimalloc workflow
1 parent 501ce68 commit 179fa4f

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Verify bundled mimalloc
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
- 'Objects/mimalloc/**'
8+
- 'Include/internal/mimalloc/**'
9+
- '.github/workflows/verify-mimalloc.yml'
10+
pull_request:
11+
paths:
12+
- 'Objects/mimalloc/**'
13+
- 'Include/internal/mimalloc/**'
14+
- '.github/workflows/verify-mimalloc.yml'
15+
16+
permissions:
17+
contents: read
18+
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
21+
cancel-in-progress: true
22+
23+
jobs:
24+
verify:
25+
runs-on: ubuntu-slim
26+
timeout-minutes: 5
27+
steps:
28+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
29+
with:
30+
persist-credentials: false
31+
- name: Download and verify bundled mimalloc files
32+
run: |
33+
./Objects/mimalloc/refresh.sh
34+
# refresh.sh recreates the vendored files, so also report files
35+
# that exist upstream but are not checked in.
36+
git ls-files -z --others -- Objects/mimalloc/ Include/internal/mimalloc/ \
37+
| xargs -0 --no-run-if-empty git add --intent-to-add --
38+
git diff --exit-code Objects/mimalloc/ Include/internal/mimalloc/

0 commit comments

Comments
 (0)