From eb386db433bda060a04ea8676bd9df64944e8744 Mon Sep 17 00:00:00 2001 From: Dobiasd Date: Wed, 22 May 2024 09:21:30 +0200 Subject: [PATCH 1/8] debug-print env --- .github/workflows/codeql.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index fc608f4f..85d26a9d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -25,6 +25,8 @@ jobs: queries: +security-and-quality - name: Build run: | + echo $CC + echo $CXX cmake -S test -B build cmake --build build -j 4 - name: CodeQL Analysis From 60ca51150bb94b4ffedd4b075a83fd4a2bea309f Mon Sep 17 00:00:00 2001 From: Dobiasd Date: Wed, 22 May 2024 09:25:46 +0200 Subject: [PATCH 2/8] print compiler version --- .github/workflows/codeql.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 85d26a9d..2a267c30 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -27,6 +27,8 @@ jobs: run: | echo $CC echo $CXX + gcc-13 --version + g++-13 --version cmake -S test -B build cmake --build build -j 4 - name: CodeQL Analysis From 5c947c1f2d5c27e4d6671b46c1e0bc11db611807 Mon Sep 17 00:00:00 2001 From: Dobiasd Date: Wed, 22 May 2024 09:31:50 +0200 Subject: [PATCH 3/8] install compiler --- .github/workflows/codeql.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 2a267c30..956499c3 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -11,13 +11,15 @@ jobs: runs-on: ubuntu-latest name: "CodeQL" env: - CC: gcc-13 - CXX: g++-13 + CC: gcc + CXX: g++ steps: - name: Checkout uses: actions/checkout@main - name: Install dependencies - run: sudo script/ci_setup_dependencies.sh + run: | + sudo apt install -y gcc g++ + sudo script/ci_setup_dependencies.sh - name: CodeQL Initialization uses: github/codeql-action/init@v3 with: @@ -27,8 +29,8 @@ jobs: run: | echo $CC echo $CXX - gcc-13 --version - g++-13 --version + gcc --version + g++ --version cmake -S test -B build cmake --build build -j 4 - name: CodeQL Analysis From 0c2f25d2259c3e5b922b0a161c4fe9d0c9a90069 Mon Sep 17 00:00:00 2001 From: Dobiasd Date: Wed, 22 May 2024 09:35:26 +0200 Subject: [PATCH 4/8] cleanup --- .github/workflows/codeql.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 956499c3..c53c3df1 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -19,6 +19,8 @@ jobs: - name: Install dependencies run: | sudo apt install -y gcc g++ + gcc --version + g++ --version sudo script/ci_setup_dependencies.sh - name: CodeQL Initialization uses: github/codeql-action/init@v3 @@ -27,10 +29,6 @@ jobs: queries: +security-and-quality - name: Build run: | - echo $CC - echo $CXX - gcc --version - g++ --version cmake -S test -B build cmake --build build -j 4 - name: CodeQL Analysis From 5cf73388c53b8fb4cc1ef334502e6da950a10284 Mon Sep 17 00:00:00 2001 From: Dobiasd Date: Wed, 22 May 2024 09:40:27 +0200 Subject: [PATCH 5/8] remove unneded apt call --- .github/workflows/codeql.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index c53c3df1..ba7d9657 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -18,7 +18,6 @@ jobs: uses: actions/checkout@main - name: Install dependencies run: | - sudo apt install -y gcc g++ gcc --version g++ --version sudo script/ci_setup_dependencies.sh From 73d24c869da36b1ffa75ba665c5fbb7e01e5a2ec Mon Sep 17 00:00:00 2001 From: Dobiasd Date: Wed, 22 May 2024 09:41:20 +0200 Subject: [PATCH 6/8] print os version --- .github/workflows/codeql.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index ba7d9657..626e780e 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -18,6 +18,7 @@ jobs: uses: actions/checkout@main - name: Install dependencies run: | + cat /etc/os-release gcc --version g++ --version sudo script/ci_setup_dependencies.sh From ce116e127d5f02169933c678a0449f741c6133e9 Mon Sep 17 00:00:00 2001 From: Dobiasd Date: Wed, 22 May 2024 09:46:04 +0200 Subject: [PATCH 7/8] use sudo for osx --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0dc17ddf..396e57df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,7 +76,7 @@ jobs: steps: - uses: actions/checkout@main - name: Setup - run: script/ci_setup_dependencies.sh + run: sudo script/ci_setup_dependencies.sh - name: Build run: script/ci_build.sh From 2804a8dd10cebf16095cbb7afd74f132e5bc4488 Mon Sep 17 00:00:00 2001 From: Dobiasd Date: Wed, 22 May 2024 09:46:57 +0200 Subject: [PATCH 8/8] cleanup --- .github/workflows/codeql.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 626e780e..b4cb3a60 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -17,11 +17,7 @@ jobs: - name: Checkout uses: actions/checkout@main - name: Install dependencies - run: | - cat /etc/os-release - gcc --version - g++ --version - sudo script/ci_setup_dependencies.sh + run: sudo script/ci_setup_dependencies.sh - name: CodeQL Initialization uses: github/codeql-action/init@v3 with: