[native] Convert CircleCI jobs for PrestoC++ to Github actions #3
Workflow file for this run
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: prestocpp-linux-build | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- 'presto-native-execution/**' | |
jobs: | |
linux-build-all: | |
runs-on: ubuntu-22.04 | |
container: | |
image: prestodb/presto-native-dependency:0.290-20241014120930-e1fc090 | |
steps: | |
- uses: actions/[email protected] | |
- name: Fix git permissions | |
# Usually actions/checkout does this but as we run in a container | |
# it doesn't work | |
run: git config --global --add safe.directory ${GITHUB_WORKSPACE} | |
- name: Update velox | |
run: | | |
cd presto-native-execution | |
make velox-submodule | |
- name: Install all adapter dependencies | |
run: | | |
mkdir -p ${GITHUB_WORKSPACE}/adapter-deps/install | |
source /opt/rh/gcc-toolset-12/enable | |
set -xu | |
cd presto-native-execution | |
DEPENDENCY_DIR=${GITHUB_WORKSPACE}/adapter-deps PROMPT_ALWAYS_RESPOND=n ./velox/scripts/setup-adapters.sh | |
DEPENDENCY_DIR=${GITHUB_WORKSPACE}/adapter-deps PROMPT_ALWAYS_RESPOND=n ./scripts/setup-adapters.sh | |
- name: Build All | |
run: | | |
source /opt/rh/gcc-toolset-12/enable | |
cd presto-native-execution | |
cmake \ | |
-B _build/debug \ | |
-GNinja \ | |
-DAWSSDK_ROOT_DIR=${GITHUB_WORKSPACE}/adapter-deps/install \ | |
-DTREAT_WARNINGS_AS_ERRORS=1 \ | |
-DENABLE_ALL_WARNINGS=1 \ | |
-DCMAKE_BUILD_TYPE=Debug \ | |
-DPRESTO_ENABLE_PARQUET=ON \ | |
-DPRESTO_ENABLE_S3=ON \ | |
-DPRESTO_ENABLE_REMOTE_FUNCTIONS=ON \ | |
-DPRESTO_ENABLE_JWT=ON \ | |
-DPRESTO_STATS_REPORTER_TYPE=PROMETHEUS \ | |
-DPRESTO_MEMORY_CHECKER_TYPE=LINUX_MEMORY_CHECKER \ | |
-DPRESTO_ENABLE_TESTING=OFF \ | |
-DCMAKE_PREFIX_PATH=/usr/local \ | |
-DThrift_ROOT=/usr/local \ | |
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ | |
-DMAX_LINK_JOBS=2 | |
ninja -C _build/debug -j 4 |