Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #185, Apply CodeQL to Every Branch #187

Merged
merged 1 commit into from
Feb 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 9 additions & 14 deletions .github/workflows/codeql-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: "CodeQL Analysis"

on:
push:
branches:
- main
pull_request:

env:
Expand All @@ -20,6 +18,7 @@ jobs:
buildtype: [debug, release]

runs-on: ubuntu-18.04
timeout-minutes: 15
env:
BUILDTYPE: ${{ matrix.buildtype }}
steps:
Expand All @@ -28,6 +27,11 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true

- name: Check versions
run: |
git log -1 --pretty=oneline
git submodule

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
Expand All @@ -43,17 +47,8 @@ jobs:

# Setup the build system
- name: Make Install
run: make install

- name: List cpu1
run: ls build/exe/cpu1/

- name: Run cFS
run: |
./core-cpu1 > cFS_startup_cpu1.txt &
sleep 30
../host/cmdUtil --endian=LE --pktid=0x1806 --cmdcode=2 --half=0x0002
working-directory: ./build/exe/cpu1/

run: make

# Run CodeQL
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1