Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement building with CMake #478

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# See: https://bazel.build/versions/master/docs/bazel-user-manual.html#flag--compilation_mode

# This project requires C++17.
build --cxxopt='-std=c++17'
test --cxxopt='-std=c++17'
build --cxxopt='-std=c++17' --host_cxxopt='-std=c++17'
test --cxxopt='-std=c++17' --host_cxxopt='-std=c++17'

# Workaround for broken grpc build on macOS.
# See: https://github.com/bazelbuild/bazel/issues/4341
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,27 @@ on:
- cron: 0 0 * * 0 # weekly

jobs:
build-linux-cmake:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install build dependencies
uses: ./.github/actions/install-build-dependencies

- name: CMake Configure
run: |
mkdir -p ~cmake_build
cd ~cmake_build
cmake .. 2>&1 | tee cmake-out
! grep --quiet -e '-- Configuring incomplete, errors occurred!' cmake-out
ChrisCummins marked this conversation as resolved.
Show resolved Hide resolved
env:
CC: clang
CXX: clang++
build-linux:
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "third_party/llvm-project"]
path = third_party/llvm-project
url = https://github.com/llvm/llvm-project/
Loading