Separate into multiple steps #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "System library tests" | |
| on: | |
| push: | |
| branches: | |
| - "build-system-libs" | |
| env: | |
| LIBMONGOC_VERSION: "2.0.1" | |
| jobs: | |
| tests: | |
| name: "Build" | |
| runs-on: "ubuntu-24.04" | |
| steps: | |
| - name: "Checkout" | |
| uses: "actions/checkout@v4" | |
| with: | |
| submodules: true | |
| - name: Install libmongoc as system library | |
| shell: bash | |
| working-directory: /tmp | |
| run: wget "https://github.com/mongodb/mongo-c-driver/archive/refs/tags/${LIBMONGOC_VERSION}.tar.gz" --output-document="mongo-c-driver.tar.gz" | |
| - name: Install libmongoc as system library | |
| shell: bash | |
| working-directory: /tmp | |
| run: tar xf "mongo-c-driver.tar.gz" | |
| - name: Install libmongoc as system library | |
| shell: bash | |
| working-directory: /tmp | |
| run: cmake -S mongo-c-driver -B _build \ | |
| -D CMAKE_BUILD_TYPE=RelWithDebInfo \ | |
| -D BUILD_VERSION="${LIBMONGOC_VERSION}" \ | |
| -D ENABLE_MONGOC=ON | |
| - name: Install libmongoc as system library | |
| shell: bash | |
| working-directory: /tmp | |
| run: cmake --build _build --config RelWithDebInfo --parallel | |
| - name: Install libmongoc as system library | |
| shell: bash | |
| working-directory: /tmp | |
| run: cmake --install _build --prefix "~/.local" --config RelWithDebInfo |