Add Dockerfiles to run bindgen-tests with many clang versions #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: bindgen-tests with different versions of clang | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
llvm_version: [13, 14, 15, 16, 17, 18] | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout code | |
- name: Build Clang Docker Image | |
run: | | |
docker build ./dockerfiles/ -f dockerfiles/Dockerfile-clang -t clang:${{ matrix.llvm_version }}-ubuntu --build-arg LLVM_VERSION=${{ matrix.llvm_version }} | |
- name: Build Bindgen Docker Image | |
run: | | |
docker build . -f dockerfiles/Dockerfile-bindgen -t bindgen:clang-${{ matrix.llvm_version }}-ubuntu --build-arg LLVM_VERSION=${{ matrix.llvm_version }} | |
- name: Run Tests in Docker Container | |
run: | | |
docker run bindgen:clang-${{ matrix.llvm_version }}-ubuntu |