mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Add GitHub workflow for CMake build
PiperOrigin-RevId: 346521211 Change-Id: Idf60be85aa3983ad625bcef53b48e8d0b797ed4a
This commit is contained in:
parent
6f8e758177
commit
a2fa269080
40
sandboxed_api/.github/workflows/ubuntu-cmake.yml
vendored
Normal file
40
sandboxed_api/.github/workflows/ubuntu-cmake.yml
vendored
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
name: CMake
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
env:
|
||||||
|
BUILD_TYPE: Release
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-20.04, ubuntu-18.04]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install ninja-build tool
|
||||||
|
uses: seanmiddleditch/gha-setup-ninja@v3
|
||||||
|
|
||||||
|
- name: Create Build Environment
|
||||||
|
run: |
|
||||||
|
pip3 install absl-py clang
|
||||||
|
cmake -E make_directory ${{runner.workspace}}/build
|
||||||
|
|
||||||
|
- name: Configure CMake
|
||||||
|
shell: bash
|
||||||
|
working-directory: ${{runner.workspace}}/build
|
||||||
|
run: cmake $GITHUB_WORKSPACE -G Ninja -DCMAKE_BUILD_TYPE=$BUILD_TYPE
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{runner.workspace}}/build
|
||||||
|
shell: bash
|
||||||
|
run: cmake --build . --config $BUILD_TYPE
|
||||||
|
|
||||||
|
# TODO(cblichmann): Before enabling this, make sure all OSS tests pass
|
||||||
|
#- name: Test
|
||||||
|
# working-directory: ${{runner.workspace}}/build
|
||||||
|
# shell: bash
|
||||||
|
# run: ctest -C $BUILD_TYPE
|
Loading…
Reference in New Issue
Block a user