Skip to content

Enforced kernel and userland version sync (#65) #13

Enforced kernel and userland version sync (#65)

Enforced kernel and userland version sync (#65) #13

Workflow file for this run

name: Code Scanning
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '17 4 * * 1'
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
name: CodeQL (${{ matrix.language }})
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
language:
- actions
- cpp
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Install RISC-V cross toolchain
if: matrix.language == 'cpp'
run: |
wget -q https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2024.04.12/riscv64-elf-ubuntu-22.04-gcc-nightly-2024.04.12-nightly.tar.gz
sudo tar xzf riscv64-elf-ubuntu-22.04-gcc-nightly-2024.04.12-nightly.tar.gz -C /opt
rm riscv64-elf-ubuntu-22.04-gcc-nightly-2024.04.12-nightly.tar.gz
echo "/opt/riscv/bin" >> "$GITHUB_PATH"
/opt/riscv/bin/riscv64-unknown-elf-gcc --version
- name: Build kernel for analysis
if: matrix.language == 'cpp'
run: |
make clean
make -j2
- name: Analyze
uses: github/codeql-action/analyze@v3