-
Notifications
You must be signed in to change notification settings - Fork 25
Restore GitHub Actions workflow #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
3f3dbe2
ci: Delete old configuration files for Semgrep
utilForever 96cedac
ci: Delete old configuration file for CodeQL analysis
utilForever ba88fec
ci: Update configuration file for Windows
utilForever 8fcc1ed
build: Update library 'pybind11' to '3.0.2'
utilForever f91989c
build: Update library 'doctest' to '2.4.12'
utilForever 1cbe2b3
build: Update CMake version to '3.31.6'
utilForever 1c768e9
ci: Separate solution extension according to Visual Studio
utilForever 8f50671
ci: Add step to install Python 3.12
utilForever 93cf3d2
ci: Update configuration file for Linux
utilForever c9df018
ci: Update configuration file for macOS
utilForever 773ecfb
ci: Update configuration file for Codecov
utilForever ee3ecab
ci: Disable configuration file for SonarCloud temporarily
utilForever b584461
ci: Add step to install Python 3.12
utilForever 5586fb8
build: Fix CMake error by changing empty command
utilForever 6e34ea7
ci: Change step to upload coverage to Codecov
utilForever 2da9164
ci: Add command to match gcov version
utilForever 01a9bbf
ci: Update command to ignore unused errors
utilForever 10fa010
ci: Apply changes by Copilot's code review
utilForever File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,65 +1,65 @@ | ||
| name: Static Analysis | ||
| # name: Static Analysis | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ main ] | ||
| pull_request: | ||
| branches: [ main ] | ||
| # on: | ||
| # push: | ||
| # branches: [ main ] | ||
| # pull_request: | ||
| # branches: [ main ] | ||
|
|
||
| jobs: | ||
| build-ubuntu: | ||
| runs-on: ${{ matrix.os }} | ||
| name: 🌞 Static Analysis - SonarCloud | ||
| strategy: | ||
| matrix: | ||
| include: | ||
| # Ubuntu 20.04 + gcc-10 | ||
| - name: "Ubuntu 20.04 + gcc-10" | ||
| os: ubuntu-20.04 | ||
| compiler: gcc | ||
| version: "10" | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| with: | ||
| submodules: true | ||
| - name: Prepare Sonar scanner | ||
| run: | | ||
| wget -nv https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.7.0.2747-linux.zip | ||
| unzip -q sonar-scanner-cli-4.7.0.2747-linux.zip | ||
| echo "${PWD}/sonar-scanner-4.7.0.2747-linux/bin/" >> $GITHUB_PATH | ||
| wget -nv https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip | ||
| unzip -q build-wrapper-linux-x86.zip | ||
| echo "${PWD}/build-wrapper-linux-x86" >> $GITHUB_PATH | ||
| - name: Install packages | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -yq gcovr ggcov lcov curl | ||
| - name: Configure Compiler | ||
| run: | | ||
| if [ "${{ matrix.compiler }}" = "gcc" ]; then | ||
| echo "CC=gcc-${{ matrix.version }}" >> $GITHUB_ENV | ||
| echo "CXX=g++-${{ matrix.version }}" >> $GITHUB_ENV | ||
| else | ||
| echo "CC=clang-${{ matrix.version }}" >> $GITHUB_ENV | ||
| echo "CXX=clang++-${{ matrix.version }}" >> $GITHUB_ENV | ||
| fi | ||
| - name: Configure Build | ||
| run: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_COVERAGE=ON -DBUILD_SONARCLOUD=ON .. | ||
| - name: Build | ||
| run: cd build && build-wrapper-linux-x86-64 --out-dir ../bw-output make all | ||
| - name: Run Unit Test | ||
| run: | | ||
| cd build | ||
| lcov --gcov-tool /usr/bin/gcov -c -i -d Tests/UnitTests -o base.info | ||
| bin/UnitTests | ||
| lcov --gcov-tool /usr/bin/gcov -c -d Tests/UnitTests -o test.info | ||
| lcov --gcov-tool /usr/bin/gcov -a base.info -a test.info -o coverage.info | ||
| lcov --gcov-tool /usr/bin/gcov -r coverage.info '*/Extensions/*' -o coverage.info | ||
| lcov --gcov-tool /usr/bin/gcov -r coverage.info '*/Includes/*' -o coverage.info | ||
| lcov --gcov-tool /usr/bin/gcov -r coverage.info '*/Libraries/*' -o coverage.info | ||
| lcov --gcov-tool /usr/bin/gcov -l coverage.info | ||
| - name: SonarCloud Scan | ||
| run: sonar-scanner -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=utilforever-github -Dsonar.login=$SONAR_TOKEN | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
| # jobs: | ||
|
utilForever marked this conversation as resolved.
|
||
| # build-ubuntu: | ||
| # runs-on: ${{ matrix.os }} | ||
| # name: 🌞 Static Analysis - SonarCloud | ||
| # strategy: | ||
| # matrix: | ||
| # include: | ||
| # # Ubuntu 20.04 + gcc-10 | ||
| # - name: "Ubuntu 20.04 + gcc-10" | ||
| # os: ubuntu-20.04 | ||
| # compiler: gcc | ||
| # version: "10" | ||
| # steps: | ||
| # - uses: actions/checkout@v2 | ||
| # with: | ||
| # submodules: true | ||
| # - name: Prepare Sonar scanner | ||
| # run: | | ||
| # wget -nv https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.7.0.2747-linux.zip | ||
| # unzip -q sonar-scanner-cli-4.7.0.2747-linux.zip | ||
| # echo "${PWD}/sonar-scanner-4.7.0.2747-linux/bin/" >> $GITHUB_PATH | ||
| # wget -nv https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip | ||
| # unzip -q build-wrapper-linux-x86.zip | ||
| # echo "${PWD}/build-wrapper-linux-x86" >> $GITHUB_PATH | ||
| # - name: Install packages | ||
| # run: | | ||
| # sudo apt-get update | ||
| # sudo apt-get install -yq gcovr ggcov lcov curl | ||
| # - name: Configure Compiler | ||
| # run: | | ||
| # if [ "${{ matrix.compiler }}" = "gcc" ]; then | ||
| # echo "CC=gcc-${{ matrix.version }}" >> $GITHUB_ENV | ||
| # echo "CXX=g++-${{ matrix.version }}" >> $GITHUB_ENV | ||
| # else | ||
| # echo "CC=clang-${{ matrix.version }}" >> $GITHUB_ENV | ||
| # echo "CXX=clang++-${{ matrix.version }}" >> $GITHUB_ENV | ||
| # fi | ||
| # - name: Configure Build | ||
| # run: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_COVERAGE=ON -DBUILD_SONARCLOUD=ON .. | ||
| # - name: Build | ||
| # run: cd build && build-wrapper-linux-x86-64 --out-dir ../bw-output make all | ||
| # - name: Run Unit Test | ||
| # run: | | ||
| # cd build | ||
| # lcov --gcov-tool /usr/bin/gcov -c -i -d Tests/UnitTests -o base.info | ||
| # bin/UnitTests | ||
| # lcov --gcov-tool /usr/bin/gcov -c -d Tests/UnitTests -o test.info | ||
| # lcov --gcov-tool /usr/bin/gcov -a base.info -a test.info -o coverage.info | ||
| # lcov --gcov-tool /usr/bin/gcov -r coverage.info '*/Extensions/*' -o coverage.info | ||
| # lcov --gcov-tool /usr/bin/gcov -r coverage.info '*/Includes/*' -o coverage.info | ||
| # lcov --gcov-tool /usr/bin/gcov -r coverage.info '*/Libraries/*' -o coverage.info | ||
| # lcov --gcov-tool /usr/bin/gcov -l coverage.info | ||
| # - name: SonarCloud Scan | ||
| # run: sonar-scanner -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=utilforever-github -Dsonar.login=$SONAR_TOKEN | ||
| # env: | ||
| # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.