From ab212af57c7543626c45168ab1b8a94f66f0f34b Mon Sep 17 00:00:00 2001 From: Lutz Reinhardt Date: Fri, 11 Jul 2025 09:13:41 +0000 Subject: [PATCH 1/2] Use devcontainer image in Github Actions With the devcontainer image the same tools and versions are used for CI and developers. This makes it way easier to reproduce CI findings or even prevent them from occuring. --- .github/workflows/build_and_test_host_gcc.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build_and_test_host_gcc.yml b/.github/workflows/build_and_test_host_gcc.yml index 26683713..254363da 100644 --- a/.github/workflows/build_and_test_host_gcc.yml +++ b/.github/workflows/build_and_test_host_gcc.yml @@ -22,12 +22,10 @@ on: types: [checks_requested] jobs: build_and_test_gcc_host_gcc12: - runs-on: ubuntu-latest + runs-on: ghcr.io/eclipse-score/devcontainer:latest steps: - name: Checkout repository uses: actions/checkout@v4.2.2 - - name: Setup Bazel - uses: bazel-contrib/setup-bazel@0.9.1 - name: Bazel build communication targets run: | bazel build //... From ba87719d9082ed0555e215e1303c783488b9f698 Mon Sep 17 00:00:00 2001 From: Lutz Reinhardt Date: Fri, 11 Jul 2025 13:24:51 +0200 Subject: [PATCH 2/2] use correct way to specify container image --- .github/workflows/build_and_test_host_gcc.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test_host_gcc.yml b/.github/workflows/build_and_test_host_gcc.yml index 254363da..9ac9975c 100644 --- a/.github/workflows/build_and_test_host_gcc.yml +++ b/.github/workflows/build_and_test_host_gcc.yml @@ -22,7 +22,9 @@ on: types: [checks_requested] jobs: build_and_test_gcc_host_gcc12: - runs-on: ghcr.io/eclipse-score/devcontainer:latest + runs-on: ubuntu-latest + container: + image: ghcr.io/eclipse-score/devcontainer:latest steps: - name: Checkout repository uses: actions/checkout@v4.2.2