-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (55 loc) · 1.72 KB
/
runner-heartbeat.yml
File metadata and controls
62 lines (55 loc) · 1.72 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
# Copyright Advanced Micro Devices, Inc.
#
# SPDX-License-Identifier: MIT
name: Runner Heartbeat
on:
schedule:
- cron: "0 1 * * 0" # every Sunday at 1AM UTC
workflow_dispatch:
permissions:
actions: write # Required to upload artifacts
contents: read # Required to read repository contents
jobs:
heartbeat:
strategy:
matrix:
runner:
- xsj-aimlab-halo-0
- xsj-aimlab-halo-1
- xsj-aimlab-halo-02
- xsj-aimlab-halo-03
- xsj-aimlab-stxp-01
- xsj-aimlab-stxp-02
- xsj-aimlab-stxp-03
- xsj-aimlab-stxp-05
- xsj-aimlab-krk-01
- xsj-aimlab-krk-02
- xsj-aimlab-krk-03
- xsj-aimlab-krk-04
- APEXX-T4P-03
- tp401-linux-r9700-vm
- tp401-linux-w7900-vm
- xsj-aimlab-radeon-7900-vm01
fail-fast: false # Continue even if one runner fails
runs-on: [self-hosted, "${{ matrix.runner }}"]
steps:
- name: Create heartbeat file (Windows)
if: runner.os == 'Windows'
shell: powershell
run: |
$timestamp = Get-Date -Format "yyyy-MM-ddTHH:mm:ssK"
$runner = "${{ runner.name }}"
"$timestamp" | Out-File -FilePath "heartbeat-$runner.txt" -Encoding utf8
- name: Create heartbeat file (Linux)
if: runner.os == 'Linux'
shell: bash
run: |
timestamp=$(date -Iseconds)
runner="${{ runner.name }}"
echo "$timestamp" > "heartbeat-$runner.txt"
- name: Upload heartbeat artifact
uses: actions/upload-artifact@v4
with:
name: heartbeat-${{ runner.name }}
path: heartbeat-${{ runner.name }}.txt
retention-days: 14