Skip to content

Commit 860f322

Browse files
committed
Add initial system-libs workflow
1 parent 5d1f8f4 commit 860f322

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/system-libs.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "System library tests"
2+
3+
on:
4+
push:
5+
branches:
6+
- "build-system-libs"
7+
8+
env:
9+
LIBMONGOC_VERSION: "2.0.1"
10+
11+
jobs:
12+
tests:
13+
name: "Build"
14+
runs-on: "ubuntu-24.04"
15+
16+
steps:
17+
- name: "Checkout"
18+
uses: "actions/checkout@v4"
19+
with:
20+
submodules: true
21+
22+
- name: Install libmongoc as system library
23+
shell: bash
24+
working-directory: /tmp
25+
run: |
26+
wget "https://github.com/mongodb/mongo-c-driver/archive/refs/tags/${LIBMONGOC_VERSION}.tar.gz" --output-document="mongo-c-driver.tar.gz"
27+
tar xf "mongo-c-driver.tar.gz"
28+
cmake -S mongo-c-driver -B _build \
29+
-D CMAKE_BUILD_TYPE=RelWithDebInfo \
30+
-D BUILD_VERSION="${LIBMONGOC_VERSION}" \
31+
-D ENABLE_MONGOC=ON
32+
cmake --build _build --config RelWithDebInfo --parallel
33+
cmake --install _build --prefix "~/.local" --config RelWithDebInfo

0 commit comments

Comments
 (0)