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" ], }, }, 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: