-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (38 loc) · 1.16 KB
/
aggregate_signals.yml
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
name: Aggregate Signals
on:
push:
jobs:
aggregate-signal:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11.2'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pyyaml
- name: Run Python script
run: python .github/scripts/merge_all.py ./signals .
- name: Cache Rust-Script Cache Directory
uses: actions/cache@v4
with:
path: ~/.cache/rust-script
key: ${{ runner.os }}-rust-script
restore-keys: |
${{ runner.os }}-rust-script
- name: Setup Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install rust-script
run: cargo install rust-script
- name: Install dependencies
run: sudo apt update && sudo apt-get install clang -y
- name: Run Rust script
run: .github/scripts/validate.rs registry.json
- name: Commit aggregated signals
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: aggregate signals