Migrate from pybind11 to nanobind #607
Workflow file for this run
This file contains hidden or 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: Run exaple with Conan | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| paths: &cpp-paths | |
| - "include/**" | |
| - "**/CMakeLists.txt" | |
| - "**/*.cmake" | |
| - "cmake/**" | |
| pull_request: | |
| branches: [ "main" ] | |
| paths: *cpp-paths | |
| jobs: | |
| build-conan-example: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| submodules: recursive | |
| - name: Cache apt packages | |
| uses: actions/cache@v6 | |
| with: | |
| path: /var/cache/apt/archives | |
| key: apt-${{ runner.os }}-boost-tbb-omp | |
| - name: Cache pip packages | |
| uses: actions/cache@v6 | |
| with: | |
| path: ~/.cache/pip | |
| key: pip-${{ runner.os }}-conan | |
| - name: Cache Conan packages | |
| uses: actions/cache@v6 | |
| with: | |
| path: ~/.conan2 | |
| key: conan-${{ runner.os }}-${{ hashFiles('examples/conan/conanfile.txt') }} | |
| restore-keys: conan-${{ runner.os }}- | |
| - name: Install Conan | |
| run: | | |
| sudo apt-get update -y && sudo apt install -y python3-pip | |
| pip3 install conan --break-system-packages | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt install -y libboost-dev libtbb-dev libomp-dev | |
| - name: Install CLUEsterin with conan | |
| working-directory: ${{ github.workspace }}/examples/conan | |
| run: | | |
| conan profile detect --force | |
| conan install . --output-folder=build --build=missing -s compiler.cppstd=20 | |
| - name: Compile and run example | |
| working-directory: ${{ github.workspace }}/examples/conan | |
| run: | | |
| cmake -B build -DALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLED=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake && cmake --build build | |
| ./build/serial.out |