diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml new file mode 100644 index 0000000..40c9917 --- /dev/null +++ b/.github/workflows/linux-build.yml @@ -0,0 +1,57 @@ +# Copyright (c) Meta Platforms, 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. + +name: Linux Build + +on: + push: + branches: + - "main" + + pull_request: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.repository }}-${{ github.head_ref || github.sha }} + cancel-in-progress: true + +jobs: + ubuntu-debug: + runs-on: ubuntu-latest + if: ${{ github.repository == 'facebookexternal/nimble' }} + name: "Ubuntu Build" + env: + CCACHE_DIR: "${{ github.workspace }}/.ccache" + defaults: + run: + shell: bash + working-directory: nimble + steps: + - uses: actions/checkout@v4 + with: + path: nimble + + - name: Install Dependencies + run: | + sudo apt install -y \ + flatbuffers-compiler \ + libflatbuffers-dev \ + libdouble-conversion-dev \ + libevent-dev + + - name: Build + run: | + make diff --git a/CMakeLists.txt b/CMakeLists.txt index 4cd05ea..90934f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,6 +105,14 @@ resolve_dependency(glog) set_source(gflags) resolve_dependency(gflags COMPONENTS shared) +set(BOOST_INCLUDE_LIBRARIES + context + filesystem + program_options) + +set_source(Boost) +resolve_dependency(Boost 1.77.0 COMPONENTS ${BOOST_INCLUDE_LIBRARIES}) + set_source(folly) resolve_dependency(folly)