Skip to content

Commit 5c18317

Browse files
committed
fix workflows
1 parent d68f360 commit 5c18317

File tree

4 files changed

+106
-134
lines changed

4 files changed

+106
-134
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
needs: prep
3838
runs-on: ubuntu-latest
3939
container:
40-
image: ghcr.io/${{ needs.prep.outputs.repo_lower }}/devcontaine:stable
40+
image: ghcr.io/${{ needs.prep.outputs.repo_lower }}/devcontainer:stable-amd64
4141
options: --user root
4242
credentials:
4343
username: ${{ github.actor }}

.github/workflows/sonar-build.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ on:
77
push:
88
branches:
99
- main
10-
- develop
1110
pull_request:
1211
types: [opened, synchronize, reopened]
12+
13+
env:
14+
BUILD_TYPE: coverage
15+
1316
jobs:
1417

1518
prep:
@@ -32,7 +35,8 @@ jobs:
3235
username: ${{ github.actor }}
3336
password: ${{ secrets.GITHUB_TOKEN }}
3437
env:
35-
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory # Directory where build-wrapper output will be placed
38+
BUILD_WRAPPER_OUT_DIR: build/${{ env.BUILD_TYPE }}
39+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3640

3741
steps:
3842
- uses: actions/checkout@v4
@@ -53,15 +57,15 @@ jobs:
5357

5458
- name: Run Build Wrapper
5559
run: |
56-
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --workflow --preset coverage
60+
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --workflow --preset ${{ env.BUILD_TYPE }}
5761
5862
- name: Collect coverage into one XML report
5963
run: |
6064
gcovr --sonarqube > coverage.xml
6165
6266
- name: Run tests to generate coverage statistics
6367
run: |
64-
ctest --test-dir build/coverage
68+
ctest --test-dir build/${{ env.BUILD_TYPE }}
6569
6670
- name: SonarQube Scan
6771
uses: SonarSource/sonarqube-scan-action@v5

CMakePresets.json

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,6 @@
5454
"cacheVariables": {
5555
"CMAKE_BUILD_TYPE": "Instrument"
5656
}
57-
},
58-
{
59-
"name": "codeql",
60-
"displayName": "Build for CodeQL Analysis",
61-
"inherits": "debug",
62-
"cacheVariables": {
63-
"FSB_BUILD_OPENBLAS": "ON"
64-
}
6557
}
6658
],
6759
"buildPresets": [
@@ -94,12 +86,6 @@
9486
"displayName": "FSB Library Test Address Sanitizer Build",
9587
"configurePreset": "instrument",
9688
"targets": ["fsbcore_test", "fsbposix_test", "fsburdf_test"]
97-
},
98-
{
99-
"name": "codeql",
100-
"displayName": "FSB Library CodeQL Build",
101-
"configurePreset": "codeql",
102-
"targets": ["fsbcore_test", "fsbposix_test"]
10389
}
10490
],
10591
"testPresets": [
@@ -162,20 +148,6 @@
162148
"name": "coverage"
163149
}
164150
]
165-
},
166-
{
167-
"name": "codeql",
168-
"displayName": "FSB Library CodeQL Workflow",
169-
"steps": [
170-
{
171-
"type": "configure",
172-
"name": "codeql"
173-
},
174-
{
175-
"type": "build",
176-
"name": "codeql"
177-
}
178-
]
179151
}
180152
]
181153
}

0 commit comments

Comments
 (0)