Skip to content
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

Workflow #27

Merged
merged 58 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
c42a4a6
upd
nepp95 Nov 8, 2024
6bcfac3
upd
nepp95 Nov 8, 2024
156666d
upd
nepp95 Nov 8, 2024
8844491
upd
nepp95 Nov 8, 2024
5ec9580
upd
nepp95 Nov 8, 2024
c40abbe
upd
nepp95 Nov 8, 2024
61c5b9e
upd
nepp95 Nov 8, 2024
93da4ef
upd
nepp95 Nov 8, 2024
62e2981
upd
nepp95 Nov 8, 2024
531f04c
upd
nepp95 Nov 8, 2024
039c320
upd
nepp95 Nov 8, 2024
e89a305
upd
nepp95 Nov 8, 2024
9055f61
upd
nepp95 Nov 8, 2024
dd0463f
upd
nepp95 Nov 8, 2024
5a95776
upd
nepp95 Nov 8, 2024
babfc52
upd
nepp95 Nov 8, 2024
183d3c3
upd
nepp95 Nov 8, 2024
b2cf2c1
upd
nepp95 Nov 8, 2024
99e6169
upd
nepp95 Nov 8, 2024
f339386
upd
nepp95 Nov 8, 2024
4e15c54
upd
nepp95 Nov 8, 2024
9179ff5
upd
nepp95 Nov 8, 2024
b5928b8
upd
nepp95 Nov 8, 2024
44ed169
upd
nepp95 Nov 8, 2024
660d41a
upd
nepp95 Nov 8, 2024
a59beed
upd
nepp95 Nov 9, 2024
ec2f831
upd
nepp95 Nov 9, 2024
fa95379
upd
nepp95 Nov 9, 2024
f2835bb
upd
nepp95 Nov 9, 2024
de78412
upd
nepp95 Nov 9, 2024
4c5b88f
upd
nepp95 Nov 9, 2024
90e87ed
upd
nepp95 Nov 9, 2024
5db156f
upd
nepp95 Nov 9, 2024
4056a4a
upd
nepp95 Nov 9, 2024
447fbc7
upd
nepp95 Nov 9, 2024
82233f4
upd
nepp95 Nov 9, 2024
6d69a7b
upd
nepp95 Nov 9, 2024
43180e1
upd
nepp95 Nov 9, 2024
23e9464
upd
nepp95 Nov 9, 2024
088b441
Merge branch 'develop' into workflow
nepp95 Dec 2, 2024
83fa911
Sonarcube
nepp95 Dec 2, 2024
600d985
upd
nepp95 Dec 2, 2024
b8eda85
upd
nepp95 Dec 2, 2024
f669a41
upd
nepp95 Dec 2, 2024
23c36fd
Merge branch 'develop' into workflow
nepp95 Dec 18, 2024
41f1d22
Update sonar cube analysis
nepp95 Dec 18, 2024
a4e0685
Fixed typo
nepp95 Dec 18, 2024
c377ab9
Different version of gcovr
nepp95 Dec 18, 2024
1659452
Update sonar cube analysis
nepp95 Dec 18, 2024
ffce9be
Upd
nepp95 Dec 18, 2024
b2d0c4c
upd
nepp95 Dec 18, 2024
c7c2a72
upd
nepp95 Dec 18, 2024
f6ebde7
sonarqube
nepp95 Dec 18, 2024
3369f0c
Save artifact
nepp95 Dec 19, 2024
b22d38e
upd
nepp95 Dec 19, 2024
4a0c97c
upd
nepp95 Dec 19, 2024
feca474
Workflow
nepp95 Dec 19, 2024
6f7ab21
Merge branch 'develop' into workflow
nepp95 Dec 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions .github/workflows/sonarcube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Sonarcube Analysis
on:
workflow_dispatch:
push:
branches: [ develop, master ]
pull_request:
branches: [ develop, master ]

jobs:
config-matrix:
runs-on: [ windows-latest ]
name: Build and Analyze
strategy:
matrix:
config: [ Debug, Release, Dist ]
env:
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Install sonar-scanner and build-wrapper
uses: SonarSource/sonarcloud-github-c-cpp@v3

- name: Setup Premake
uses: abel0b/[email protected]
with:
version: "5.0.0-beta2"
path: Vendor/Premake/Bin

- name: Setup MSBuild
uses: microsoft/[email protected]

- name: Cache VulkanSDK
id: cache-vulkansdk
uses: actions/cache@v4
with:
path: "C:/VulkanSDK"
key: vulkansdk

- name: Download and Install VulkanSDK
if: steps.cache-vulkansdk.outputs.cache-hit != 'true'
shell: pwsh
run: |
Invoke-WebRequest -Uri https://sdk.lunarg.com/sdk/download/1.3.275.0/windows/VulkanSDK-1.3.275.0-Installer.exe -OutFile VulkanSDK.exe
.\VulkanSDK.exe --accept-licenses --default-answer --confirm-command install com.lunarg.vulkan.debug

- name: Run Premake
run: .\Vendor\Premake\Bin\Premake5.exe vs2022

- name: Run build-wrapper
run: |
build-wrapper-win-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} msbuild /m /t:rebuild /nodeReuse:false /p:Configuration=${{ matrix.config }} EppoEngine.sln

- name: Run sonar-scanner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
sonar-scanner --define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"

2 changes: 1 addition & 1 deletion .github/workflows/test-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test Report

on:
workflow_run:
workflows: [ develop, master ]
workflows: [ CI ]
types:
- completed

Expand Down
2 changes: 2 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sonar.projectKey=nepp95_EppoEngine
sonar.organization=nepp95