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 299f27f
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
43 changes: 43 additions & 0 deletions .github/workflows/aggregate_signals.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Run Python and Rust Scripts

on:
push:

jobs:
run-scripts:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pyyaml
- name: Run Python script
run: python scripts/merge_all.py ./scripts .

- 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
uses: Swatinem/rust-cache@v2
run: scripts/validate.rs registry.json

- name: Commit aggregated signals
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Aggregate signals

0 comments on commit 299f27f

Please sign in to comment.