-
Notifications
You must be signed in to change notification settings - Fork 388
73 lines (64 loc) · 1.85 KB
/
ci.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: ci build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
ubuntu-cmake:
name: ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: install deps
run: |
sudo apt-get update
sudo apt-get install -y libprotobuf-dev protobuf-compiler libgtest-dev valgrind
- name: update submodules
run: git submodule update --init --recursive
- name: make
run: make -j4
- name: make tutorial
run: make tutorial -j4
- name: make check
run: make check -j4
- name: make install
run: sudo make install
fedora-cmake:
name: fedora
runs-on: ubuntu-latest
steps:
- name: Setup Podman
run: |
sudo apt update
sudo apt-get -y install podman
podman pull fedora:rawhide
- name: Get source
uses: actions/checkout@master
with:
path: 'workflow'
- name: Create container and run tests
run: |
{
echo 'FROM fedora:rawhide'
echo 'RUN dnf -y update'
echo 'RUN dnf -y install cmake gcc-c++ gtest-devel git make'
echo 'RUN dnf -y install openssl-devel protobuf-devel'
echo 'RUN dnf -y install lz4-devel snappy-devel'
echo 'RUN dnf clean all'
echo 'COPY workflow workflow'
echo 'WORKDIR /workflow'
echo 'RUN git submodule update --init --recursive'
echo 'RUN cmake'
echo 'RUN make'
echo 'RUN make check'
echo 'RUN make tutorial'
} > podmanfile
podman build --tag fedorarawhide -f ./podmanfile
ubuntu-bazel:
name: bazel
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: bazel build
run: bazel build ...