Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacbrodsky committed Jul 1, 2022
1 parent abeb1af commit 0379eb7
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 5 deletions.
49 changes: 44 additions & 5 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,53 @@ on:

jobs:
tests:
name: Test Compile ${{ matrix.compiler }}
name: Test Compile clang
runs-on: ubuntu-latest
env:
CC: ${{ matrix.compiler }}
CC: clang

strategy:
matrix:
compiler: [clang, gcc]
steps:
- uses: actions/checkout@v2.4.0

- name: Install H3
run: |
cd /tmp
git clone https://github.com/uber/h3
cd h3
mkdir build
cd build
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 ..
make
sudo make install
- name: Install Doxygen, clang-format
run: |
sudo apt update
sudo apt-get install doxygen graphviz clang-format-9
- name: Configure build
run: cmake -Bbuild -DBUILD_SHARED_LIBS=ON -DWARNINGS_AS_ERRORS=ON .

- name: Formatting check
working-directory: build
run: |
clang-format-9 --version
make format
git diff --exit-code
- name: Build
working-directory: build
run: make

- name: Tests
working-directory: build
run: make test

tests:
name: Test Compile gcc
runs-on: ubuntu-latest
env:
CC: gcc

steps:
- uses: actions/checkout@v2.4.0
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# h3-sqlite3

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

Expand Down

0 comments on commit 0379eb7

Please sign in to comment.