Skip to content

Commit cbd15d8

Browse files
committed
GitHub: setup action
1 parent 7484128 commit cbd15d8

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/json_generation.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Frontend JSON Generation
2+
on:
3+
push:
4+
pull_request:
5+
jobs:
6+
generation:
7+
runs-on: ubuntu-latest
8+
container:
9+
image: debian:stable-slim
10+
steps:
11+
- name: Setup dependencies
12+
run: |
13+
apt-get update && \
14+
apt-get install --no-install-recommends -y \
15+
python3 \
16+
python3-venv \
17+
python3-pip \
18+
make \
19+
rsync\
20+
&& \
21+
apt-get clean
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
- name: Install python requirements
25+
run: |
26+
python3 -m venv venv
27+
. venv/bin/activate
28+
pip3 install -r requirements.txt
29+
- name: Validate YAMLs
30+
run: |
31+
. venv/bin/activate
32+
make -j$(nproc) validate
33+
- name: Generate JSONs
34+
run: |
35+
. venv/bin/activate
36+
make O=./build -j$(nproc)
37+
- name: Archive JSONs
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: frontend-dataset
41+
path: build

0 commit comments

Comments
 (0)