|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +name: C++ Build and Tests |
| 19 | + |
| 20 | +on: |
| 21 | + push: |
| 22 | + branches: |
| 23 | + - main |
| 24 | + paths-ignore: |
| 25 | + - 'website/**' |
| 26 | + - '**/*.md' |
| 27 | + pull_request: |
| 28 | + branches: |
| 29 | + - main |
| 30 | + paths-ignore: |
| 31 | + - 'website/**' |
| 32 | + - '**/*.md' |
| 33 | + - 'bindings/python/**' |
| 34 | + workflow_dispatch: |
| 35 | + |
| 36 | +concurrency: |
| 37 | + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} |
| 38 | + cancel-in-progress: true |
| 39 | + |
| 40 | +jobs: |
| 41 | + build-and-test-cpp: |
| 42 | + timeout-minutes: 60 |
| 43 | + runs-on: ubuntu-latest |
| 44 | + steps: |
| 45 | + - uses: actions/checkout@v4 |
| 46 | + |
| 47 | + - name: Install protoc |
| 48 | + run: sudo apt-get update && sudo apt-get install -y protobuf-compiler |
| 49 | + |
| 50 | + - name: Install Apache Arrow C++ |
| 51 | + run: | |
| 52 | + sudo apt-get install -y -V ca-certificates lsb-release wget |
| 53 | + wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb |
| 54 | + sudo apt-get install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb |
| 55 | + sudo apt-get update |
| 56 | + sudo apt-get install -y -V libarrow-dev |
| 57 | +
|
| 58 | + - name: Rust Cache |
| 59 | + uses: actions/cache@v4 |
| 60 | + with: |
| 61 | + path: | |
| 62 | + ~/.cargo/registry |
| 63 | + ~/.cargo/git |
| 64 | + target |
| 65 | + key: cpp-test-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }} |
| 66 | + |
| 67 | + - name: Build C++ bindings and tests |
| 68 | + working-directory: bindings/cpp |
| 69 | + run: | |
| 70 | + cmake -B build -DFLUSS_ENABLE_TESTING=ON -DCMAKE_BUILD_TYPE=Debug |
| 71 | + cmake --build build --parallel |
| 72 | +
|
| 73 | + - name: Run C++ integration tests |
| 74 | + working-directory: bindings/cpp |
| 75 | + run: cd build && ctest --output-on-failure --timeout 300 |
| 76 | + env: |
| 77 | + RUST_LOG: DEBUG |
| 78 | + RUST_BACKTRACE: full |
0 commit comments