Skip to content

Commit a24cef4

Browse files
committed
ci
1 parent ad8f6d9 commit a24cef4

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,39 @@ jobs:
7171
run: |
7272
LC_ALL=C sort -c CONTRIBUTORS.txt
7373
74+
gen_llhttp:
75+
name: Generate llhttp sources
76+
needs: lint
77+
runs-on: ubuntu-latest
78+
timeout-minutes: 5
79+
steps:
80+
- name: Checkout
81+
uses: actions/checkout@v2
82+
with:
83+
submodules: true
84+
- name: Cache llhttp generated files
85+
uses: actions/cache@v2
86+
id: cache
87+
with:
88+
key: llhttp-${{ hashFiles('vendor/llhttp/package.json', 'vendor/llhttp/src/**/*') }}
89+
path: |
90+
vendor/llhttp/build/llhttp.h
91+
vendor/llhttp/build/c/llhttp.c
92+
- name: Setup NodeJS
93+
uses: actions/setup-node@v2
94+
if: steps.cache.outputs.cache-hit != 'true'
95+
with:
96+
node-version: '14'
97+
- name: Generate sources
98+
if: steps.cache.outputs.cache-hit != 'true'
99+
run: |
100+
cd vendor/llhttp
101+
npm install
102+
make generate
103+
74104
test:
75105
name: Test
76-
needs: lint
106+
needs: gen_llhttp
77107
strategy:
78108
matrix:
79109
pyver: [3.7, 3.8, 3.9]

0 commit comments

Comments
 (0)