Skip to content

Commit

Permalink
Run the Dockerfiles in GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
boydjohnson committed Apr 13, 2024
1 parent c28485d commit d34848e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/bindgen-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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

0 comments on commit d34848e

Please sign in to comment.