From 0fafa3f14edff9c33182906605d070be2e4d885e Mon Sep 17 00:00:00 2001 From: Leo <35804463+Yuki-cpp@users.noreply.github.com> Date: Sun, 17 Dec 2023 22:27:46 +0900 Subject: [PATCH] Use own container for CI --- .github/workflows/build_and_test.yml | 5 +++++ .github/workflows/codeql.yml | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 67c7b23..9cad057 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -60,6 +60,11 @@ jobs: RunCodeCov: runs-on: ubuntu-22.04 + container: + image: ghcr.io/cpp-playground/containers + credentials: + username: ${{ github.actor }} + password: ${{ secrets.github_token }} env: CC: /usr/bin/clang-17 CXX: /usr/bin/clang++-17 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e988f0b..faed683 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -9,7 +9,13 @@ on: jobs: analyze: name: Analyze - runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} + runs-on: ubuntu-latest + container: + image: ghcr.io/cpp-playground/containers + credentials: + username: ${{ github.actor }} + password: ${{ secrets.github_token }} + timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} permissions: actions: read