|
| 1 | +name: Build and Test Eckit |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + workflow_dispatch: |
| 6 | + push: |
| 7 | + branches: |
| 8 | + - "master" |
| 9 | + - "develop" |
| 10 | + tags-ignore: |
| 11 | + - "**" |
| 12 | + |
| 13 | +jobs: |
| 14 | + build: |
| 15 | + strategy: |
| 16 | + matrix: |
| 17 | + runner: |
| 18 | + - [self-hosted, platform-builder-debian-11] |
| 19 | + - [self-hosted, platform-builder-ubuntu-22.04] |
| 20 | + - [self-hosted, platform-builder-rocky-8.6] |
| 21 | + - [self-hosted, platform-builder-fedora-37] |
| 22 | + runs-on: ${{ matrix.runner }} |
| 23 | + steps: |
| 24 | + - name: Get ecbuild |
| 25 | + uses: actions/checkout@v5 |
| 26 | + with: |
| 27 | + repository: ecmwf/ecbuild |
| 28 | + ref: develop |
| 29 | + path: ecbuild |
| 30 | + - name: Get cxx-dependencies |
| 31 | + uses: actions/checkout@v5 |
| 32 | + with: |
| 33 | + repository: ecmwf/cxx-dependencies |
| 34 | + ref: master |
| 35 | + path: cxx-dependencies-src |
| 36 | + token: ${{ secrets.GH_REPO_READ_TOKEN }} |
| 37 | + submodules: recursive |
| 38 | + - name: Install dependencies |
| 39 | + run: | |
| 40 | + mkdir cxx-dependencies-build |
| 41 | + BUILD_PATH=cxx-dependencies-build INSTALL_PREFIX=dependencies cxx-dependencies-src/build.sh |
| 42 | + - name: Get eckit |
| 43 | + uses: actions/checkout@v5 |
| 44 | + with: |
| 45 | + repository: ecmwf/eckit |
| 46 | + ref: develop |
| 47 | + path: eckit-src |
| 48 | + - name: Install eckit |
| 49 | + run: | |
| 50 | + mkdir eckit-build |
| 51 | + cmake \ |
| 52 | + -B eckit-build \ |
| 53 | + -S eckit-src \ |
| 54 | + -GNinja \ |
| 55 | + -DCMAKE_INSTALL_PREFIX=dependencies \ |
| 56 | + -DCMAKE_PREFIX_PATH=dependencies \ |
| 57 | + -DCMAKE_BUILD_TYPE=RelWithDebInfo |
| 58 | + cmake --build eckit-build -j -t install |
| 59 | + build-mars-client-bundle: |
| 60 | + uses: ozaq/test-bundle/.github/workflows/build.yml@demo/ci |
| 61 | + secrets: |
| 62 | + GH_REPO_READ_TOKEN: ${{ secrets.GH_REPO_READ_TOKEN }} |
| 63 | + with: |
| 64 | + ref: ${{ github.ref }} |
0 commit comments