From 70bcd58c60c506f22a57079d5a6dd6228b577195 Mon Sep 17 00:00:00 2001 From: Oleg Nenashev Date: Mon, 20 Oct 2025 21:32:58 +0200 Subject: [PATCH 1/2] Add GitHub Actions plugin to Dev Container --- .devcontainer/devcontainer.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index ef0180d..97ae144 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -30,7 +30,9 @@ "redhat.vscode-yaml", "shardulm94.trailing-spaces", "oderwat.indent-rainbow", - "msjsdiag.debugger-for-chrome" + "msjsdiag.debugger-for-chrome", + // GitHub Actions + "github.vscode-github-actions" ], }, }, From 0e1c3675e57a56399cb84e0bb9710c13bf6b181a Mon Sep 17 00:00:00 2001 From: Oleg Nenashev Date: Mon, 20 Oct 2025 21:38:29 +0200 Subject: [PATCH 2/2] Add Dev Containers build to the execution --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 91f0da0..1b22dea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,7 @@ on: jobs: build-project: + name: Buuld (Native) runs-on: ubuntu-latest steps: - name: Checkout the repository @@ -25,7 +26,42 @@ jobs: run-test: true test-args: "--output-on-failure" + build-project-devcontainers: + name: Build (Dev Containers) + runs-on: ubuntu-latest + + permissions: + contents: read + packages: read + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: "true" + + - 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 in the dev container image + uses: devcontainers/ci@v0.3 + with: + imageName: ghcr.io/testcontainers/testcontainers-native-builder + cacheFrom: ghcr.io/testcontainers/testcontainers-native-builder + push: never + runCmd: | + cmake . + cmake --build . + ctest --output-on-failure + env: | + GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} + build-site: + name: Build Site runs-on: ubuntu-latest permissions: