Skip to content

Commit

Permalink
Rename CI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
imciner2 committed Jan 2, 2025
1 parent 860c776 commit 542b402
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 542b402

Please sign in to comment.