Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Time0o committed Dec 27, 2021
1 parent 61093c6 commit 169c52f
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 169c52f

Please sign in to comment.