Skip to content

Commit e4ccf4b

Browse files
committed
add github action generate
1 parent 47d1ecb commit e4ccf4b

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/generate.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Generate Thrift Code
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
pull_request:
8+
branches:
9+
- develop
10+
11+
jobs:
12+
generate:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Install Thrift
20+
run: sudo apt-get install -y thrift-compiler
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: '3.x'
26+
27+
- name: Run generate.sh
28+
run: |
29+
chmod +x ./generate.sh
30+
./generate.sh

generate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
thrift --gen py -out ./ ./idl/*.thrift
44

5-
python type_generator.py
5+
python3 type_generator.py

0 commit comments

Comments
 (0)