Skip to content

Implement optree transformation: Join identical conditional branches #216

Implement optree transformation: Join identical conditional branches

Implement optree transformation: Join identical conditional branches #216

Workflow file for this run

name: CodeQL
permissions:
contents: read
actions: read
security-events: write
on:
push:
branches:
- main
paths:
- '.github/workflows/codeql.yml'
- 'compiler/**/*.cpp'
- 'compiler/**/*.hpp'
pull_request:
branches:
- main
paths:
- '.github/workflows/codeql.yml'
- 'compiler/**/*.cpp'
- 'compiler/**/*.hpp'
jobs:
codeql-analyze:
name: CodeQL analyze
runs-on: ubuntu-latest
timeout-minutes: 360
container:
image: ghcr.io/vla5924-practice/compiler-project/devcontainer:latest
options: --user root
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
steps:
- name: Initialize repository
uses: actions/checkout@v4
with:
submodules: true
- name: Configure Git
run: git config --global --add safe.directory $(pwd)
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: c-cpp
build-mode: manual
- name: Build
run: |
cmake -S compiler -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DENABLE_CODEGEN=OFF
cmake --build build --parallel
- name: Perform analysis
uses: github/codeql-action/analyze@v3