-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,31 +11,35 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
# Use 24.04 explicitly to get newer GCC version | ||
os: [ubuntu-24.04, macos-latest, windows-latest] | ||
os: [ubuntu, macos, windows] | ||
include: | ||
- os: ubuntu-24.04 | ||
- variant: ubuntu | ||
# Use 24.04 explicitly to get newer GCC version | ||
os: ubuntu-24.04 | ||
compiler: gcc | ||
gcc: 14 | ||
extra_c_flags: "-fdiagnostics-format=sarif-file" | ||
test_target: "test" | ||
coverage: ON | ||
analysis: ON | ||
asan: ON | ||
- os: macos-latest | ||
- variant: macos | ||
os: macos-latest | ||
extra_c_flags: "" | ||
test_target: "test" | ||
coverage: OFF | ||
analysis: OFF | ||
asan: OFF | ||
- os: windows-latest | ||
- variant: windows | ||
os: windows-latest | ||
extra_c_flags: "" | ||
test_target: "RUN_TESTS" | ||
coverage: OFF | ||
analysis: OFF | ||
asan: OFF | ||
|
||
runs-on: ${{ matrix.os }} | ||
name: ${{ matrix.variant }} | ||
|
||
env: | ||
QDLDL_BUILD_DIR_PREFIX: ${{ github.workspace }}/build | ||
|
@@ -86,25 +90,14 @@ jobs: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
path-to-lcov: '${{ github.workspace }}/build/coverage.info' | ||
|
||
- name: "List dir" | ||
if: ${{ matrix.analysis == 'ON' }} | ||
shell: bash | ||
run: ls -la ${{ github.workspace }}/build/ | ||
|
||
- name: Merge diagnostics | ||
if: ${{ matrix.analysis == 'ON' }} | ||
uses: microsoft/[email protected] | ||
with: | ||
# Command to be sent to SARIF Multitool | ||
# Command to be sent to SARIF Multitool. Runs by default in github.workspace, and including any absolute | ||
# paths seems to not work, so everything must be relative. | ||
command: merge ./build/*.c.c.sarif --recurse true --output-directory=./build/ --output-file=gcc.sarif | ||
|
||
- name: "List dir" | ||
if: ${{ matrix.analysis == 'ON' }} | ||
shell: bash | ||
run: | | ||
sudo apt-get install tree | ||
tree ${{ github.workspace }}/build/ | ||
- name: Upload diagnostics | ||
if: ${{ matrix.analysis == 'ON' }} | ||
uses: github/codeql-action/upload-sarif@v3 | ||
|