File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments