From 169c52f45fe2e8a4d7b891c8a7bf55e107a57538 Mon Sep 17 00:00:00 2001 From: Timo Nicolai Date: Sun, 26 Dec 2021 16:19:27 +0100 Subject: [PATCH] CI --- .github/workflows/workflow.yml | 41 ++++++++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/workflow.yml diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 0000000..3cc67d4 --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,41 @@ +name: build and run tests +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build-and-test: + runs-on: ubuntu-latest + strategy: + matrix: + CXX: [clang++-11, clang++-12] + include: + - CXX: clang++-11 + DEPS: clang-11 llvm-11-dev libclang-11-dev libclang-cpp11-dev + + - CXX: clang++-12 + DEPS: clang-12 llvm-12-dev libclang-12-dev libclang-cpp12-dev + + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + + - name: install-dependencies + run: > + sudo apt-get update && + sudo apt-get install -yq ${{ matrix.DEPS }} + - name: cmake-configure + run: > + cmake -B build + -DCMAKE_BUILD_TYPE=Debug + -DCMAKE_CXX_COMPILER=${{ matrix.CXX }} + - name: cmake-build + run: cmake --build build + + - name: test-run + run: cmake --build build --target test + env: + CTEST_OUTPUT_ON_FAILURE: 1 diff --git a/README.md b/README.md index 8297267..e1f4c95 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ For more examples, take a look at the tests in the `tests` directory. ## Installation To build fire-llvm you will need the LLVM development libraries. I have tested -this with Clang/LLVM version 12.0.\*, minor tweaks might be needed for other +this with Clang/LLVM version 11 and 12 minor tweaks might be needed for other versions. To build the plugin, run: