Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Linux

on:
pull_request:
push:
release:
types: published

jobs:
linux:
runs-on: [ubuntu-latest]
strategy:
matrix:
pattern:
- 'pg docker gcc debug'
- 'pg docker gcc release'
- 'pg docker gcc test_external_project'
- 'pg docker clang debug'
- 'pg docker clang release'
- 'pg docker clang asan'
- 'pg docker clang ubsan'
- 'pg docker clang tsan'
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install dependencies
run: |
sudo sed -i 's/azure\.//' /etc/apt/sources.list
sudo apt update
sudo apt install -y python3-setuptools
pip3 install --user docker-compose

- name: Build OZO
shell: bash
run: |
scripts/build.sh ${{ matrix.pattern }}
27 changes: 27 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Mac OS X

on:
pull_request:
push:
release:
types: published

jobs:
macos:
runs-on: [macos-latest]
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install dependencies
run: |
sudo chown -R $(whoami) $(brew --prefix)/*
brew unlink libpq
brew install --force boost postgresql || brew link --overwrite postgresql

- name: Build OZO
env:
BOOSTROOT: /usr
shell: bash
run: |
scripts/build.sh clang debug
7 changes: 0 additions & 7 deletions benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
find_program(CCACHE_FOUND ccache)

if(CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
endif()

add_executable(ozo_benchmark ozo_benchmark.cpp)
target_link_libraries(ozo_benchmark ozo)

Expand Down
7 changes: 0 additions & 7 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
find_program(CCACHE_FOUND ccache)

if(CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
endif()

add_executable(ozo_request request.cpp)
target_link_libraries(ozo_request ozo)

Expand Down
7 changes: 0 additions & 7 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
find_program(CCACHE_FOUND ccache)

include(ExternalProject)
ExternalProject_Add(
GoogleTest
Expand Down Expand Up @@ -83,11 +81,6 @@ target_link_libraries(ozo_tests gmock)
target_link_libraries(ozo_tests ozo)
add_test(ozo_tests ozo_tests)

if(CCACHE_FOUND)
set_target_properties(ozo_tests PROPERTIES RULE_LAUNCH_COMPILE ccache)
set_target_properties(ozo_tests PROPERTIES RULE_LAUNCH_LINK ccache)
endif()

# enable useful warnings and errors
target_compile_options(ozo_tests PRIVATE -Wall -Wextra -pedantic -Werror)

Expand Down