Skip to content

Merge pull request #1 from JeffWigger/feature/add_elias_delta #44

Merge pull request #1 from JeffWigger/feature/add_elias_delta

Merge pull request #1 from JeffWigger/feature/add_elias_delta #44

Workflow file for this run

name: Ubuntu
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
BUILD_TYPE: Release
INSTALL_LOCATION: .local
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: cache dependencies
uses: actions/[email protected]
id: cache
with:
path: ${{ github.workspace }}/${{ env.INSTALL_LOCATION }}
key: ${{ runner.os }}-dependencies
- name: install openmp
run: sudo apt-get install -y libomp-dev
- name: install GoogleTest
if: steps.cache.outputs.cache-hit != 'true'
run: |
cd ..
git clone https://github.com/google/googletest.git --branch release-1.12.1
cd googletest
cmake -Bbuild -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/$INSTALL_LOCATION
cmake --build build --config Release
cmake --build build --target install --config Release
- name: configure
run: cmake -Bbuild -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/$INSTALL_LOCATION -Dcompc_ENABLE_UNIT_TESTING=1 -Dcompc_ENABLE_CODE_COVERAGE=0 -D CMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: build
run: cmake --build build --config $BUILD_TYPE -j4
- name: run tests CXX=clang++
run: |
cd build
ctest -C $BUILD_TYPE -VV
- name: install project
run: cmake --build build --target install --config Release