Remove include guard for plain tuple
target.
#20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Unit Test | |
on: | |
push: | |
branches: | |
- 'main' | |
paths-ignore: | |
- '*.md' | |
- 'docs/**' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Requirements | |
run: sudo apt-get install -y clang-14 libc++-14-dev libc++abi-14-dev | |
- name: Checkout tuple | |
uses: actions/checkout@v2 | |
with: | |
repository: cpp-core/tuple | |
path: tuple | |
- name: Build and run the tests | |
run: | | |
export CC=clang-14 | |
export CXX=clang++-14 | |
mkdir -p tuple/build && pushd tuple/build | |
cmake -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/opt .. | |
make | |
make -j4 check | |
make install | |
popd |