diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 9d8fa1c..21598af 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -36,6 +36,7 @@ jobs: language: [ 'cpp', 'python' ] # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support + mode: [ 'pico', 'local' ] steps: - name: Checkout repository @@ -67,7 +68,7 @@ jobs: - run: | echo "Run, Build Application using script" - ./workflows/autobuild.sh + ./workflows/autobuild.sh ${{ matrix.mode }} - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 diff --git a/workflows/autobuild.sh b/workflows/autobuild.sh index 09ef1c7..eb9b4ae 100755 --- a/workflows/autobuild.sh +++ b/workflows/autobuild.sh @@ -9,5 +9,9 @@ git submodule update --init cd .. mkdir build cd build +if [[ $1 == "pico" ]]; then cmake -DPICO_SDK_PATH=../pico-sdk .. +else +cmake -DENABLE_EMULATION=1 .. +fi make