Skip to content

Commit

Permalink
Add linux build CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroerp committed Apr 24, 2024
1 parent bb0fa53 commit fc19748
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# 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 \
libgflags-dev \
libunwind-dev \
libgoogle-glog-dev \
libdouble-conversion-dev \
libevent-dev \
liblzo2-dev \
libelf-dev \
libdwarf-dev \
libsnappy-dev
- name: Build
run: |
make
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit fc19748

Please sign in to comment.