Skip to content
Closed
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
1 change: 1 addition & 0 deletions .ci/manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ platform = "hpc-atos-nvidia"
modules = ["load prgenv/nvidia", "unload nvidia", "load nvidia/26.1", "load cmake", "load ninja"]
c-compiler-binary = "nvc"
cxx-compiler-binary = "nvc++"
sccache = false

[[matrix.build-hpc.include]]
cxx-compiler = "icpx-2025.3.1"
Expand Down
54 changes: 34 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,15 @@ jobs:
- uses: ecmwf/ci-infrastructure/actions/pre-commit@main

resolve:
needs: [ci-approval, pre-commit]
runs-on: arc-runner-normal
container:
image: eccr.ecmwf.int/public-ci-images/ubuntu24.04-base:latest
needs: ci-approval
runs-on: ubuntu-latest
outputs:
build-matrix: ${{ steps.r.outputs.matrix-build }}
build-hpc-matrix: ${{ steps.r.outputs.matrix-build-hpc }}
rust-matrix: ${{ toJSON(fromJSON(steps.r.outputs.json).rust) }}
# resolve-deps declares matrix-<kind> outputs only for some kinds; json holds them all.
python-matrix: ${{ toJSON(fromJSON(steps.r.outputs.json).python) }}
steps:
- name: Announce image
uses: ecmwf/ci-infrastructure/actions/announce-image@main
- id: mint
uses: actions/create-github-app-token@v3
with:
Expand All @@ -78,14 +74,22 @@ jobs:
client-id: ${{ secrets.CI_PERMISSIONS_APP_CLIENT_ID }}
app-private-key: ${{ secrets.CI_PERMISSIONS_APP_PRIVATE_KEY }}

hpc-gate:
needs: ci-approval
runs-on: ubuntu-slim
permissions:
statuses: write
pull-requests: read
outputs:
run: ${{ steps.gate.outputs.run }}
steps:
- id: gate
uses: ecmwf/ci-infrastructure/actions/hpc-gate@main

wait-build:
needs: [ci-approval, resolve]
runs-on: arc-runner-normal
container:
image: eccr.ecmwf.int/public-ci-images/ubuntu24.04-base:latest
runs-on: ubuntu-latest
steps:
- name: Announce image
uses: ecmwf/ci-infrastructure/actions/announce-image@main
- id: mint
uses: actions/create-github-app-token@v3
with:
Expand All @@ -98,13 +102,10 @@ jobs:
token: ${{ steps.mint.outputs.token }}

wait-build-hpc:
needs: [ci-approval, resolve]
runs-on: arc-runner-normal
container:
image: eccr.ecmwf.int/public-ci-images/ubuntu24.04-base:latest
needs: [ci-approval, resolve, hpc-gate]
if: needs.hpc-gate.outputs.run == 'true'
runs-on: ubuntu-latest
steps:
- name: Announce image
uses: ecmwf/ci-infrastructure/actions/announce-image@main
- id: mint
uses: actions/create-github-app-token@v3
with:
Expand All @@ -117,7 +118,7 @@ jobs:
token: ${{ steps.mint.outputs.token }}

build:
needs: [ci-approval, resolve, wait-build]
needs: [ci-approval, pre-commit, resolve, wait-build]
name: build+test (${{ matrix._resolved['job-name'] }})
runs-on: ${{ matrix['runs-on'] }}
container:
Expand Down Expand Up @@ -271,7 +272,7 @@ jobs:
resolved: ${{ toJSON(matrix._resolved) }}

build-hpc:
needs: [ci-approval, resolve, wait-build-hpc]
needs: [ci-approval, pre-commit, resolve, wait-build-hpc]
name: build-hpc (${{ matrix._resolved['job-name'] }})
runs-on: ${{ matrix['runs-on'] }}
container:
Expand Down Expand Up @@ -326,10 +327,23 @@ jobs:
resolved: ${{ toJSON(matrix._resolved) }}
own-source: ${{ steps.build.outputs.cache-hit == 'true' && 'artifact' || 'built' }}

collect-result-hpc:
name: collect HPC results
if: always() && needs.hpc-gate.outputs.run == 'true'
needs: [ci-approval, hpc-gate, wait-build-hpc, build-hpc]
runs-on: ubuntu-slim
permissions:
statuses: write
steps:
- uses: ecmwf/ci-infrastructure/actions/ci-result@main
with:
needs: ${{ toJSON(needs) }}
context: ci-result/hpc-atos

ci-result:
name: collect results
if: always()
needs: [ci-approval, pre-commit, resolve, wait-build, build, rust, python, wait-build-hpc, build-hpc]
needs: [ci-approval, hpc-gate, pre-commit, resolve, wait-build, build, rust, python]
runs-on: ubuntu-slim
permissions:
statuses: write
Expand Down
Loading