forked from firebase/firebase-cpp-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 916 Bytes
/
c-cpp-linux_build-only.yml
File metadata and controls
33 lines (31 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Build Linux Tests Only
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-linux:
runs-on: ubuntu-latest
name: build-linux-no-test
steps:
- uses: actions/checkout@v2
- name: Hello World
run: echo "Hello World"
- name: Install abysl and protobuf-compiler for python
run: |
python --version
python -m pip install --upgrade pip
pip install absl-py
sudo apt-get install python-protobuf
- name: Install protobuf native compiler
run: sudo apt-get install protobuf-compiler
- name: Build linux
run: |
set -e
set -x
mkdir -p linux_build
cd linux_build
cmake .. -DFIREBASE_CPP_BUILD_TESTS=OFF -DFIREBASE_FORCE_FAKE_SECURE_STORAGE=ON "$@"
cpus=$(nproc --all)
cmake --build . -- -j $cpus