Skip to content

Commit 0379eb7

Browse files
committed
fix build
1 parent abeb1af commit 0379eb7

File tree

2 files changed

+45
-5
lines changed

2 files changed

+45
-5
lines changed

.github/workflows/test-linux.yml

+44-5
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,53 @@ on:
88

99
jobs:
1010
tests:
11-
name: Test Compile ${{ matrix.compiler }}
11+
name: Test Compile clang
1212
runs-on: ubuntu-latest
1313
env:
14-
CC: ${{ matrix.compiler }}
14+
CC: clang
1515

16-
strategy:
17-
matrix:
18-
compiler: [clang, gcc]
16+
steps:
17+
- uses: actions/checkout@v2.4.0
18+
19+
- name: Install H3
20+
run: |
21+
cd /tmp
22+
git clone https://github.com/uber/h3
23+
cd h3
24+
mkdir build
25+
cd build
26+
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=-fPIC -DBUILD_BENCHMARKS​=OFF -DBUILD_FILTERS=OFF -DBUILD_GENERATORS=OFF -DBUILD_TESTING=OFF -DENABLE_DOCS=OFF -DBUILD_FUZZERS=OFF ..
27+
make
28+
sudo make install
29+
30+
- name: Install Doxygen, clang-format
31+
run: |
32+
sudo apt update
33+
sudo apt-get install doxygen graphviz clang-format-9
34+
35+
- name: Configure build
36+
run: cmake -Bbuild -DBUILD_SHARED_LIBS=ON -DWARNINGS_AS_ERRORS=ON .
37+
38+
- name: Formatting check
39+
working-directory: build
40+
run: |
41+
clang-format-9 --version
42+
make format
43+
git diff --exit-code
44+
45+
- name: Build
46+
working-directory: build
47+
run: make
48+
49+
- name: Tests
50+
working-directory: build
51+
run: make test
52+
53+
tests:
54+
name: Test Compile gcc
55+
runs-on: ubuntu-latest
56+
env:
57+
CC: gcc
1958

2059
steps:
2160
- uses: actions/checkout@v2.4.0

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# h3-sqlite3
22

3+
[![Coverage Status](https://coveralls.io/repos/github/isaacbrodsky/h3-sqlite3/badge.svg?branch=master)](https://coveralls.io/github/isaacbrodsky/h3-sqlite3?branch=master)
34
[![test-linux](https://github.com/isaacbrodsky/h3-sqlite3/workflows/test-linux/badge.svg)](https://github.com/isaacbrodsky/h3-sqlite3/actions)
45
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
56

0 commit comments

Comments
 (0)