Skip to content

Commit

Permalink
add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
warittornc committed Sep 24, 2024
1 parent fb961bc commit 66f8d25
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 10,728 deletions.
File renamed without changes.
File renamed without changes.
50 changes: 50 additions & 0 deletions .github/workflows/aggregate_signals.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
4 changes: 0 additions & 4 deletions CS.yaml

This file was deleted.

Loading

0 comments on commit 66f8d25

Please sign in to comment.