Skip to content

Commit d34848e

Browse files
committed
Run the Dockerfiles in GH Actions
1 parent c28485d commit d34848e

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/bindgen-tests.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: bindgen-tests with different versions of clang
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build-and-test:
13+
runs-on: ubuntu-22.04
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
llvm_version: [13, 14, 15, 16, 17, 18]
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
name: Checkout code
22+
23+
- name: Build Clang Docker Image
24+
run: |
25+
docker build ./dockerfiles/ -f dockerfiles/Dockerfile-clang -t clang:${{ matrix.llvm_version }}-ubuntu --build-arg LLVM_VERSION=${{ matrix.llvm_version }}
26+
27+
- name: Build Bindgen Docker Image
28+
run: |
29+
docker build . -f dockerfiles/Dockerfile-bindgen -t bindgen:clang-${{ matrix.llvm_version }}-ubuntu --build-arg LLVM_VERSION=${{ matrix.llvm_version }}
30+
31+
- name: Run Tests in Docker Container
32+
run: |
33+
docker run bindgen:clang-${{ matrix.llvm_version }}-ubuntu

0 commit comments

Comments
 (0)