Skip to content

Add github and gitlab ci #3

Add github and gitlab ci

Add github and gitlab ci #3

Workflow file for this run

name: Build and test proteus
on:
pull_request:
jobs:
build-and-test:
name: proteus ${{ matrix.os }} LLVM ${{ matrix.llvm }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
llvm: [17.0.5]
steps:
- uses: actions/checkout@v4
- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
- name: Create environment
run: |
conda install -y -c conda-forge \
clang=${{ matrix.llvm }} \
clangxx=${{ matrix.llvm }} \
llvmdev=${{ matrix.llvm }} \
lit=${{ matrix.llvm }}
python -m pip install filecheck
- name: Build and test
run: |
mkdir -p build
pushd build
cmake .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
make -j
make test
popd