Skip to content

Commit

Permalink
Attempt to use CodeQL autobuild
Browse files Browse the repository at this point in the history
...on Ubuntu 24.04, which should come with a new enough GCC by default
  • Loading branch information
tcbrindle committed Jun 3, 2024
1 parent b4cd323 commit 1524122
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
actions: read
contents: read
Expand All @@ -35,18 +35,11 @@ jobs:
language: [ 'cpp' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
include:
- install: |
brew install gcc@13 ninja binutils
brew link --force binutils

steps:
- name: Checkout repository
uses: actions/checkout@master

- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand All @@ -62,8 +55,8 @@ jobs:

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
#- name: Autobuild
# uses: github/codeql-action/autobuild@v2
- name: Autobuild
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -74,12 +67,12 @@ jobs:
# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh
- run: |
${{matrix.install}}
cmake -E make_directory ${{runner.workspace}}/build
cd ${{runner.workspace}}/build
cmake ${GITHUB_WORKSPACE} -GNinja -DCMAKE_CXX_COMPILER=g++-13
cmake --build .
#- run: |
# ${{matrix.install}}
# cmake -E make_directory ${{runner.workspace}}/build
# cd ${{runner.workspace}}/build
# cmake ${GITHUB_WORKSPACE} -GNinja -DCMAKE_CXX_COMPILER=g++-13
# cmake --build .


- name: Perform CodeQL Analysis
Expand Down

0 comments on commit 1524122

Please sign in to comment.