-
Notifications
You must be signed in to change notification settings - Fork 30
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
10 additions
and
9 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 |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
c-compiler: clang | ||
cxx-compiler: clang++ | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
wget https://apt.llvm.org/llvm.sh | ||
chmod +x llvm.sh | ||
|
@@ -35,7 +35,7 @@ jobs: | |
-DCMAKE_CXX_COMPILER=${{ matrix.cxx-compiler }} | ||
tests | ||
- working-directory: ${{github.workspace}}/build | ||
run: make VERBOSE=1 | ||
run: make VERBOSE=1 -j$(nproc) | ||
- working-directory: ${{github.workspace}}/build | ||
run: make test | ||
|
||
|
@@ -47,23 +47,23 @@ jobs: | |
contains(github.event.head_commit.message, '#sonar') | ||
runs-on: ubuntu-latest | ||
env: | ||
SONAR_SCANNER_VERSION: 4.8.0.2856 | ||
SONAR_SCANNER_VERSION: 5.0.1.3006 | ||
SONAR_SERVER_URL: "https://sonarcloud.io" | ||
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
CC: gcc | ||
CXX: g++ | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- run: sudo apt install g++ g++-multilib gcc-multilib | ||
- uses: actions/setup-java@v3 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: 11 | ||
java-version: 17 | ||
distribution: zulu | ||
- uses: actions/cache@v3 | ||
- uses: actions/cache@v4 | ||
with: | ||
path: ~/.sonar/cache | ||
key: ${{ runner.os }}-sonar | ||
|
@@ -92,7 +92,8 @@ jobs: | |
gcov --preserve-paths --long-file-names $(find CMakeFiles/test_general_cov.dir -name '*.gcno') | ||
gcov --preserve-paths --long-file-names $(find CMakeFiles/test_private_cov.dir -name '*.gcno') | ||
# https://community.sonarsource.com/t/analyzing-a-header-only-c-library/51468 | ||
- run: > | ||
- if: env.SONAR_TOKEN != '' | ||
run: > | ||
sonar-scanner | ||
--define sonar.projectKey="pavel-kirienko_o1heap" | ||
--define sonar.organization="pavel-kirienko" | ||
|
@@ -108,7 +109,7 @@ jobs: | |
if: github.event_name == 'push' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: DoozyX/[email protected] | ||
with: | ||
source: './o1heap ./tests' | ||
|