Comment on the possibility of pretending the chunk length of 1. #83
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
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
name: Check CMake install | |
jobs: | |
install: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get latest CMake | |
uses: lukka/get-cmake@latest | |
- name: Install tatami_chunked | |
run: | | |
git clone https://github.com/tatami-inc/tatami_chunked dep-tatami_chunked --depth=1 | |
cd dep-tatami_chunked | |
cmake -S . -B build -DTATAMI_CHUNKED_TESTS=OFF | |
sudo cmake --install build | |
- name: Install HDF5 | |
run: | | |
sudo apt-get update | |
sudo apt-get install libhdf5-dev | |
- name: Configure the build | |
run: cmake -S . -B build -DTATAMI_HDF5_FETCH_EXTERN=OFF -DTATAMI_HDF5_TESTS=OFF | |
- name: Install the library | |
run: sudo cmake --install build | |
- name: Test downstream usage | |
run: | | |
mkdir _downstream | |
touch _downstream/source.cpp | |
cat << EOF > _downstream/CMakeLists.txt | |
cmake_minimum_required(VERSION 3.24) | |
project(test_install) | |
add_executable(whee source.cpp) | |
find_package(tatami_tatami_hdf5) | |
target_link_libraries(whee tatami::tatami_hdf5) | |
EOF | |
cd _downstream && cmake -S . -B build |