-
-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (52 loc) · 1.57 KB
/
debug.yaml
File metadata and controls
56 lines (52 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
name: 🩺 Debug
"on":
push:
branches:
- main
paths:
- .github/workflows/debug.yaml
workflow_call:
workflow_dispatch:
schedule:
# Run monthly on the 1st at 12:00 UTC to spot silent regressions.
- cron: "0 12 1 * *"
concurrency:
group: >-
${{ github.workflow }}-${{
github.event.pull_request.number
|| github.ref
}}
cancel-in-progress: >-
${{ !startsWith(github.event.head_commit.message,
'[changelog] Release') }}
jobs:
project-metadata:
name: 🧬 Project metadata
runs-on: ubuntu-slim
outputs:
build_targets: ${{ steps.extend-matrix.outputs.targets }}
steps:
- uses: actions/checkout@v6.0.2
- uses: astral-sh/setup-uv@v7.3.0
- name: Run repomatic metadata
id: project-metadata
run: uvx --no-progress --from . repomatic --verbosity DEBUG metadata --output "$GITHUB_OUTPUT"
- name: Extend matrix with ubuntu-slim
id: extend-matrix
run: |
targets=$(echo '${{ steps.project-metadata.outputs.build_targets }}' | jq -c '. + [{"os":"ubuntu-slim"}]')
echo "targets=$targets" >> "$GITHUB_OUTPUT"
dump-context:
name: 🩺 ${{ matrix.os }} info dump
needs:
- project-metadata
if: needs.project-metadata.outputs.build_targets
strategy:
matrix:
include: ${{ fromJSON(needs.project-metadata.outputs.build_targets) }}
runs-on: ${{ matrix.os }}
steps:
- uses: crazy-max/ghaction-dump-context@v2.3.0
- uses: astral-sh/setup-uv@v7.3.0
- run: uvx --no-progress 'extra-platforms==9.2.0'