mirror of
https://github.com/microsoft/mscclpp.git
synced 2026-05-12 17:26:04 +00:00
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
name: "CodeQL"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
schedule:
|
|
- cron: "30 1 * * 1"
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
runs-on: 'ubuntu-latest'
|
|
container:
|
|
image: ghcr.io/microsoft/mscclpp/mscclpp:base-cuda12.1
|
|
credentials:
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
packages: read
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: [ 'cpp', 'python' ]
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Check disk space
|
|
run: |
|
|
df -h
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v2
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
|
|
- run: |
|
|
echo "Run, Build Application using script"
|
|
git config --global --add safe.directory /__w/mscclpp/mscclpp
|
|
curl -L https://github.com/Kitware/CMake/releases/download/v3.26.4/cmake-3.26.4-linux-x86_64.tar.gz -o /tmp/cmake-3.26.4-linux-x86_64.tar.gz
|
|
tar xzf /tmp/cmake-3.26.4-linux-x86_64.tar.gz -C /tmp
|
|
MPI_HOME=/usr/local/mpi /tmp/cmake-3.26.4-linux-x86_64/bin/cmake .
|
|
make -j
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v2
|
|
with:
|
|
category: "/language:${{matrix.language}}"
|