-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add C++ compile Github Action, add third_party for dependencies (#475)
* Add C++ compile Github Action, add third_party for dependencies * Fix paths * Link to Boost
- Loading branch information
Showing
4 changed files
with
64 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Check C++ Code | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- 'cpp/**' | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- 'cpp/**' | ||
workflow_dispatch: {} | ||
|
||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
BUILD_TYPE: Debug | ||
|
||
jobs: | ||
build: | ||
name: Check C++ Code | ||
timeout-minutes: 30 | ||
|
||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Add Arrow remote package repository | ||
run: >- | ||
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 && | ||
sudo apt install ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb | ||
- name: Install Dependencies | ||
run: >- | ||
sudo apt update && | ||
sudo apt install libarrow-dev libarrow-flight-dev libarrow-flight-sql-dev sqlite3 libboost-all-dev | ||
- name: Configure Project using CMake | ||
working-directory: ${{github.workspace}}/cpp | ||
run: cmake -B ${{github.workspace}}/cpp/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | ||
|
||
- name: Compile Project | ||
working-directory: ${{github.workspace}}/cpp/build | ||
run: make -j | ||
timeout-minutes: 15 |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
include(FetchContent) | ||
|
||
FetchContent_Declare( | ||
pybind11 | ||
GIT_REPOSITORY https://github.com/pybind/pybind11.git | ||
GIT_TAG v2.11.1 | ||
) | ||
|
||
FetchContent_Declare( | ||
gflags | ||
GIT_REPOSITORY https://github.com/gflags/gflags | ||
GIT_TAG v2.2.2 | ||
) | ||
|
||
FetchContent_MakeAvailable(pybind11 gflags) |