From feb32ce0dedd7e96046a3f539436d7fe88331576 Mon Sep 17 00:00:00 2001 From: Kai Germaschewski Date: Wed, 27 May 2026 12:27:09 +0000 Subject: [PATCH 1/4] ci: add devcontainer config --- .github/workflows/psc-cuda-devcontainer.yml | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/psc-cuda-devcontainer.yml diff --git a/.github/workflows/psc-cuda-devcontainer.yml b/.github/workflows/psc-cuda-devcontainer.yml new file mode 100644 index 000000000..0e26e85fc --- /dev/null +++ b/.github/workflows/psc-cuda-devcontainer.yml @@ -0,0 +1,22 @@ +name: PSC CI CUDA (devcontainer) + +on: + push: + branches: [ main, 'pr/*' ] + pull_request: + branches: [ main ] + +jobs: + build-cuda-devcontainer: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Build CUDA configuration in devcontainer + uses: devcontainers/ci@v0.3 + with: + configFile: .devcontainer/devcontainer.json + runCmd: | + cmake -S . -B build-cuda-ci -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPSC_GPU=cuda -DGTENSOR_DEVICE=cuda -G Ninja + cmake --build build-cuda-ci From 1f2da7c722ea0f90f08a67fbd4cd1dea14313c0e Mon Sep 17 00:00:00 2001 From: Kai Germaschewski Date: Wed, 27 May 2026 13:28:18 +0000 Subject: [PATCH 2/4] ci: push image for caching --- .github/workflows/psc-cuda-devcontainer.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/psc-cuda-devcontainer.yml b/.github/workflows/psc-cuda-devcontainer.yml index 0e26e85fc..657da15e8 100644 --- a/.github/workflows/psc-cuda-devcontainer.yml +++ b/.github/workflows/psc-cuda-devcontainer.yml @@ -11,12 +11,23 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - 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: always runCmd: | cmake -S . -B build-cuda-ci -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPSC_GPU=cuda -DGTENSOR_DEVICE=cuda -G Ninja cmake --build build-cuda-ci From bd915dde6fef20948faa2283e3fdb06b161ceff8 Mon Sep 17 00:00:00 2001 From: Kai Germaschewski Date: Wed, 27 May 2026 13:48:45 +0000 Subject: [PATCH 3/4] ci: fix permissions --- .github/workflows/psc-cuda-devcontainer.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/psc-cuda-devcontainer.yml b/.github/workflows/psc-cuda-devcontainer.yml index 657da15e8..150e25219 100644 --- a/.github/workflows/psc-cuda-devcontainer.yml +++ b/.github/workflows/psc-cuda-devcontainer.yml @@ -6,6 +6,10 @@ on: pull_request: branches: [ main ] +permissions: + contents: read + packages: write + jobs: build-cuda-devcontainer: runs-on: ubuntu-latest From fc29f00e437dcff1ccf13d094e088c23e8ff1882 Mon Sep 17 00:00:00 2001 From: Kai Germaschewski Date: Wed, 27 May 2026 14:10:18 +0000 Subject: [PATCH 4/4] ci: don't push for now --- .github/workflows/psc-cuda-devcontainer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/psc-cuda-devcontainer.yml b/.github/workflows/psc-cuda-devcontainer.yml index 150e25219..1ebefe585 100644 --- a/.github/workflows/psc-cuda-devcontainer.yml +++ b/.github/workflows/psc-cuda-devcontainer.yml @@ -31,7 +31,7 @@ jobs: configFile: .devcontainer/devcontainer.json imageName: ghcr.io/psc-code/psc-devcontainer cacheFrom: ghcr.io/psc-code/psc-devcontainer - push: always + 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