Implement optree transformation: Join identical conditional branches #216
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |