Ubuntu Bundled Dependencies #23
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
| # Copyright (c) Facebook, Inc. and its affiliates. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. | |
| # Tests the BUNDLED dependency resolution path on a plain Ubuntu runner | |
| # (no container). Triggered on PRs that change dependency scripts or | |
| # CMake modules, and on a nightly schedule. | |
| name: Ubuntu Bundled Dependencies | |
| on: | |
| schedule: | |
| - cron: 0 5 * * * | |
| workflow_dispatch: {} | |
| pull_request: | |
| paths: | |
| - scripts/setup-*.sh | |
| - scripts/setup-common.sh | |
| - scripts/setup-versions.sh | |
| - scripts/setup-helper-functions.sh | |
| - CMake/** | |
| - CMakeLists.txt | |
| - .github/workflows/ubuntu-bundled-deps.yml | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.repository }}-${{ github.head_ref || github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| ubuntu-debug-bundled-deps: | |
| runs-on: 16-core-ubuntu | |
| if: ${{ github.repository == 'facebookincubator/velox' }} | |
| name: Ubuntu debug with bundled dependencies | |
| env: | |
| CCACHE_DIR: ${{ github.workspace }}/ccache | |
| defaults: | |
| run: | |
| shell: bash | |
| working-directory: velox | |
| steps: | |
| - name: Get Ccache Stash | |
| uses: apache/infrastructure-actions/stash/restore@3354c1565d4b0e335b78a76aedd82153a9e144d4 | |
| with: | |
| path: ${{ env.CCACHE_DIR }} | |
| key: ccache-ubuntu-debug-bundled-deps | |
| - name: Ensure Stash Dirs Exists | |
| working-directory: ${{ github.workspace }} | |
| run: | | |
| mkdir -p "$CCACHE_DIR" | |
| - uses: actions/checkout@v5 | |
| with: | |
| path: velox | |
| persist-credentials: false | |
| - name: Install Dependencies | |
| run: | | |
| source scripts/setup-ubuntu.sh && install_apt_deps && install_faiss_deps | |
| - name: Clear CCache Statistics | |
| run: | | |
| ccache -sz | |
| - name: Make Debug Build | |
| env: | |
| VELOX_DEPENDENCY_SOURCE: BUNDLED | |
| ICU_SOURCE: SYSTEM | |
| MAKEFLAGS: NUM_THREADS=16 MAX_HIGH_MEM_JOBS=4 MAX_LINK_JOBS=2 | |
| run: | | |
| EXTRA_CMAKE_FLAGS=( | |
| "-DCMAKE_LINK_LIBRARIES_STRATEGY=REORDER_FREELY" | |
| "-DVELOX_ENABLE_BENCHMARKS=ON" | |
| "-DVELOX_ENABLE_EXAMPLES=ON" | |
| "-DVELOX_ENABLE_ARROW=ON" | |
| "-DVELOX_ENABLE_GEO=ON" | |
| "-DVELOX_ENABLE_PARQUET=ON" | |
| "-DVELOX_MONO_LIBRARY=ON" | |
| "-DVELOX_BUILD_SHARED=ON" | |
| "-DVELOX_ENABLE_FAISS=ON" | |
| "-DVELOX_ENABLE_REMOTE_FUNCTIONS=ON" | |
| ) | |
| make debug | |
| - name: CCache after | |
| run: | | |
| ccache -vs | |
| - uses: apache/infrastructure-actions/stash/save@3354c1565d4b0e335b78a76aedd82153a9e144d4 | |
| with: | |
| path: ${{ env.CCACHE_DIR }} | |
| key: ccache-ubuntu-debug-bundled-deps | |
| - name: Run Tests | |
| run: | | |
| cd _build/debug && ctest -j 8 --output-on-failure --no-tests=error |