-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (44 loc) · 1.09 KB
/
build-and-test.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
on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- '.github/workflows/build-and-test.yml'
- 'src/geoarrow_geos/**'
- 'CMakeLists.txt'
name: Build and Test
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
run: |
sudo apt-get update
sudo apt install -y cmake valgrind lcov libgeos-dev
- name: Build
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DGEOARROW_GEOS_BUILD_TESTS=ON
cmake --build .
- name: Test
run: |
cd build
ctest -T test --output-on-failure .
- name: Test with memcheck
run: |
cd build
ctest -T memcheck .
- name: Upload memcheck results
if: failure()
uses: actions/upload-artifact@main
with:
name: geoarrow-geos-memcheck
path: build/Testing/Temporary/MemoryChecker.*.log