WriterADIOS2: write fields in separate components #23
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: PSC CI CUDA (devcontainer) | |
| on: | |
| push: | |
| branches: [ main, 'pr/*' ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| inputs: | |
| push_image: | |
| description: Build and push the devcontainer image to GHCR | |
| required: true | |
| type: boolean | |
| default: true | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| build-cuda-devcontainer: | |
| runs-on: ubuntu-latest | |
| if: github.event_name != 'workflow_dispatch' | |
| steps: | |
| - name: Checkout (github) | |
| uses: actions/checkout@v4 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build CUDA configuration in devcontainer | |
| uses: devcontainers/ci@v0.3 | |
| with: | |
| configFile: .devcontainer/devcontainer.json | |
| imageName: ghcr.io/psc-code/psc-devcontainer | |
| cacheFrom: ghcr.io/psc-code/psc-devcontainer | |
| push: never | |
| runCmd: | | |
| cmake -S . -B build-cuda-ci -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPSC_GPU=cuda -DGTENSOR_DEVICE=cuda -G Ninja | |
| cmake --build build-cuda-ci | |
| push-cuda-devcontainer: | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'workflow_dispatch' && inputs.push_image | |
| steps: | |
| - name: Checkout (github) | |
| uses: actions/checkout@v4 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and push devcontainer image | |
| uses: devcontainers/ci@v0.3 | |
| with: | |
| configFile: .devcontainer/devcontainer.json | |
| imageName: ghcr.io/psc-code/psc-devcontainer | |
| cacheFrom: ghcr.io/psc-code/psc-devcontainer | |
| push: always |