Skip to content

Add github and gitlab ci #8

Add github and gitlab ci

Add github and gitlab ci #8

Workflow file for this run

name: Build and test
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]
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v4
- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
with:
conda-remove-defaults: true
- 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
ln -s ${CONDA_PREFIX}/filecheck ${CONDA_PREFIX}/FileCheck
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true
- name: Build and test
run: |
mkdir -p build
pushd build
cmake .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DLLVM_INSTALL_DIR=$(llvm-config --prefix)
make -j
make test
popd