-
Notifications
You must be signed in to change notification settings - Fork 36
91 lines (79 loc) · 2.85 KB
/
Copy pathstatus.yml
File metadata and controls
91 lines (79 loc) · 2.85 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: status
on:
schedule:
# Run daily at 0500 UTC.
- cron: '0 5 * * *'
# Run right after the build workflow publishes a fresh smelt.json, so the
# status page picks up new bytecode classification immediately rather than
# waiting for the next daily run. The job-level guard below restricts this to
# master pushes, the only builds that republish smelt.json.
workflow_run:
workflows: [build]
types: [completed]
jobs:
status:
runs-on: ubuntu-latest
# Scheduled runs always proceed. workflow_run runs only when the triggering
# build was a push to master (i.e. one that republished smelt.json).
if: >-
github.event_name != 'workflow_run' ||
(github.event.workflow_run.event == 'push' &&
github.event.workflow_run.head_branch == 'master')
permissions:
actions: write # needed to delete and re-save caches
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Restore pombast cache
uses: actions/cache/restore@v4
with:
# pombast: status caches; jgo: per-artifact bytecode-scan results;
# ~/.m2: candidate JARs that bump classification downloads to scan.
# Persisting these keeps the daily classification from re-downloading
# and re-scanning every candidate on each run.
path: |
~/.cache/pombast
~/.cache/jgo
~/.m2/repository
key: ${{ runner.os }}-pombast-status
# The monoqueue library is used by pombast to read GitHub issues.
- name: Restore monoqueue cache
uses: actions/cache/restore@v4
with:
path: ~/.cache/monoqueue
key: ${{ runner.os }}-monoqueue-status
- name: Generate and publish status and team pages
run: .github/status.sh
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Delete old pombast status cache
if: always()
run: .github/delete-cache.sh "${{ runner.os }}-pombast-status"
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Save pombast cache
if: always()
uses: actions/cache/save@v4
with:
path: |
~/.cache/pombast
~/.cache/jgo
~/.m2/repository
key: ${{ runner.os }}-pombast-status
- name: Delete old monoqueue cache
if: always()
run: .github/delete-cache.sh "${{ runner.os }}-monoqueue-status"
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Save monoqueue cache
if: always()
uses: actions/cache/save@v4
with:
path: ~/.cache/monoqueue
key: ${{ runner.os }}-monoqueue-status