Skip to content

Commit b042325

Browse files
committed
feat: build 0.21.4 with armv7
1 parent 11bb85b commit b042325

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build tree-sitter-c for armv7
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
7+
jobs:
8+
build-tree-sitter-c-armv7:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Set up QEMU
12+
uses: docker/setup-qemu-action@v3
13+
14+
- name: Set up Docker Buildx
15+
uses: docker/setup-buildx-action@v3
16+
17+
- name: Build with ARMv7
18+
run: |
19+
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
20+
docker run --rm -v ${{ github.workspace }}:/ws -w /ws --platform linux/arm/v7 \
21+
-v /tmp/cargo:/root/.cargo \
22+
-e CARGO_HOME=/root/.cargo \
23+
python:3.8-bullseye \
24+
bash -c '
25+
apt-get update && apt-get install -y git cargo
26+
git clone --depth 1 --branch v0.21.4 https://github.com/tree-sitter/tree-sitter-c.git
27+
cd tree-sitter-c
28+
python -m pip wheel . --no-deps -w ../downloaded_wheels
29+
'
30+
31+
- name: Store artifacts
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: downloaded_wheels_armv7
35+
path: downloaded_wheels

0 commit comments

Comments
 (0)