-
Notifications
You must be signed in to change notification settings - Fork 1
165 lines (165 loc) · 5.53 KB
/
jobs-linux-no-test-run.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
name: jobs-linux-no-test-run
on:
pull_request:
types: [ synchronize, opened, reopened ]
branches:
- main
jobs:
build-linux-release:
runs-on: ubuntu-latest
container:
image: zjay437/rocksdb:0.6
steps:
- uses: actions/checkout@v4
- uses: "./.github/actions/pre-steps"
- name: Build and test
working-directory: /__w/encfs/encfs/rocksdb
run: |-
make V=1 -j4 LIB_MODE=shared release
ls librocksdb.so
./db_stress --version
make clean
make V=1 -j4 release
ls librocksdb.a
./db_stress --version
make clean
apt-get remove -y libgflags-dev
make V=1 -j4 LIB_MODE=shared release
ls librocksdb.so
if ./db_stress --version; then false; else true; fi
make clean
make V=1 -j4 release
ls librocksdb.a
if ./db_stress --version; then false; else true; fi
shell: bash
- uses: "./.github/actions/post-steps"
build-linux-release-rtti:
runs-on: ubuntu-latest
container:
image: zjay437/rocksdb:0.6
steps:
- uses: actions/checkout@v4
- uses: "./.github/actions/pre-steps"
- name: Build and test
working-directory: /__w/encfs/encfs/rocksdb
run: |-
USE_RTTI=1 DEBUG_LEVEL=0 make V=1 -j4 static_lib tools db_bench
./db_stress --version
make clean
apt-get remove -y libgflags-dev
USE_RTTI=1 DEBUG_LEVEL=0 make V=1 -j4 static_lib tools db_bench
if ./db_stress --version; then false; else true; fi
shell: bash
build-examples:
runs-on: ubuntu-latest
container:
image: zjay437/rocksdb:0.6
steps:
- uses: actions/checkout@v4
- uses: "./.github/actions/pre-steps"
- name: Build examples
working-directory: /__w/encfs/encfs/rocksdb
run: make V=1 -j4 static_lib && cd examples && make V=1 -j4
- uses: "./.github/actions/post-steps"
build-fuzzers:
runs-on: ubuntu-latest
container:
image: zjay437/rocksdb:0.6
steps:
- uses: actions/checkout@v4
- uses: "./.github/actions/pre-steps"
- name: Build
working-directory: /__w/encfs/encfs/rocksdb
run: CC=clang-13 CXX=clang++-13 USE_CLANG=1 make -j4 static_lib
- name: Build fuzzers
working-directory: /__w/encfs/encfs/rocksdb
run: cd fuzz && make sst_file_writer_fuzzer db_fuzzer db_map_fuzzer
- uses: "./.github/actions/post-steps"
build-linux-clang-no_test_run:
runs-on: ubuntu-latest
container:
image: zjay437/rocksdb:0.6
steps:
- uses: actions/checkout@v4
- uses: "./.github/actions/pre-steps"
- name: Build
working-directory: /__w/encfs/encfs/rocksdb
run: CC=clang CXX=clang++ USE_CLANG=1 PORTABLE=1 make V=1 -j4 all
- uses: "./.github/actions/post-steps"
build-linux-clang-13-no_test_run:
runs-on: ubuntu-latest
container:
image: zjay437/rocksdb:0.6
steps:
- uses: actions/checkout@v4
- uses: "./.github/actions/pre-steps"
- name: Build
working-directory: /__w/encfs/encfs/rocksdb
run: CC=clang-13 CXX=clang++-13 USE_CLANG=1 make -j4 all microbench
- uses: "./.github/actions/post-steps"
build-linux-gcc-8-no_test_run:
runs-on: ubuntu-latest
container:
image: zjay437/rocksdb:0.6
steps:
- uses: actions/checkout@v4
- uses: "./.github/actions/pre-steps"
- name: Build
working-directory: /__w/encfs/encfs/rocksdb
run: CC=gcc-8 CXX=g++-8 V=1 make -j4 all
- uses: "./.github/actions/post-steps"
build-linux-gcc-10-cxx20-no_test_run:
runs-on: ubuntu-latest
container:
image: zjay437/rocksdb:0.6
steps:
- uses: actions/checkout@v4
- uses: "./.github/actions/pre-steps"
- name: Build
working-directory: /__w/encfs/encfs/rocksdb
run: CC=gcc-10 CXX=g++-10 V=1 ROCKSDB_CXX_STANDARD=c++20 make -j4 all
- uses: "./.github/actions/post-steps"
build-linux-gcc-11-no_test_run:
runs-on: ubuntu-latest
container:
image: zjay437/rocksdb:0.6
steps:
- uses: actions/checkout@v4
- uses: "./.github/actions/pre-steps"
- name: Build
working-directory: /__w/encfs/encfs/rocksdb
run: LIB_MODE=static CC=gcc-11 CXX=g++-11 && mkdir build && cd build && cmake -DWITH_BENCHMARK=ON -DROCKSDB_PLUGINS=encfs .. && make V=1 -j4
- uses: "./.github/actions/post-steps"
build-linux-arm-cmake-no_test_run:
runs-on: ubuntu-latest
container:
image: zjay437/rocksdb:0.6
env:
JAVA_HOME: "/usr/lib/jvm/java-8-openjdk-arm64"
steps:
- run: echo "skip this job, Github Actions free plan does not support arm64 yet"
# - uses: actions/checkout@v4
# - uses: "./.github/actions/pre-steps"
# - uses: "./.github/actions/install-gflags"
# - name: Set Java Environment
# run: |-
# echo "JAVA_HOME=${JAVA_HOME}"
# echo 'export PATH=$JAVA_HOME/bin:$PATH' >> $GITHUB_ENV
# which java && java -version
# which javac && javac -version
# - name: Build with cmake
# working-directory: /__w/encfs/encfs/rocksdb
# run: |-
# mkdir build
# cd build
# cmake -DCMAKE_BUILD_TYPE=Release -DWITH_TESTS=0 -DWITH_GFLAGS=1 -DWITH_BENCHMARK_TOOLS=0 -DWITH_TOOLS=0 -DWITH_CORE_TOOLS=1 -DROCKSDB_PLUGINS=encfs ..
# make -j4
# - name: Build Java with cmake
# working-directory: /__w/encfs/encfs/rocksdb
# run: |-
# rm -rf build
# mkdir build
# cd build
# cmake -DJNI=1 -DCMAKE_BUILD_TYPE=Release -DWITH_GFLAGS=1 -DROCKSDB_PLUGINS=encfs ..
# make -j4 rocksdb rocksdbjni
# - uses: "./.github/actions/post-steps"