@@ -26,29 +26,14 @@ jobs:
2626 - uses : SonarSource/ci-github-actions/get-build-number@v1
2727 id : get-build-number
2828
29- build-linux :
30- name : Build Linux
31- runs-on : github-ubuntu-latest-s # Custom GitHub-hosted runner for public repos
32- needs : get-build-number
33- permissions :
34- id-token : write # Required for Vault OIDC authentication
35- contents : write # Required for repository access and tagging
36- env :
37- BUILD_NUMBER : ${{ needs.get-build-number.outputs.build-number }}
38- steps :
39- - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
40- - uses : jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0
41- with :
42- version : 2025.7.12
43- - uses : SonarSource/ci-github-actions/build-maven@v1
44- with :
45- deploy-pull-request : true
46- artifactory-reader-role : private-reader
47- artifactory-deployer-role : qa-deployer
48-
49- build-windows :
50- name : Build Windows
51- runs-on : github-windows-latest-s
29+ build :
30+ strategy :
31+ matrix :
32+ item :
33+ - { runner: "github-ubuntu-latest-s", deploy: true}
34+ - { runner: "github-windows-latest-s", deploy: false}
35+ name : Build on ${{ matrix.item.runner }}
36+ runs-on : ${{ matrix.item.runner }}
5237 needs : get-build-number
5338 permissions :
5439 id-token : write # Required for Vault OIDC authentication
6247 version : 2025.7.12
6348 - uses : SonarSource/ci-github-actions/build-maven@v1
6449 with :
65- deploy-pull-request : false
50+ deploy-pull-request : ${{ matrix.item.deploy }}
6651 artifactory-reader-role : private-reader
6752 artifactory-deployer-role : qa-deployer
6853
7863 name : QA Tests
7964 needs :
8065 - get-build-number
81- - build-linux
82- - build-windows
66+ - build
8367 permissions :
8468 id-token : write # Required for Vault OIDC authentication
8569 contents : write # Required for repository access
@@ -117,8 +101,7 @@ jobs:
117101
118102 promote :
119103 needs :
120- - build-linux
121- - build-windows
104+ - build
122105 - qa
123106 runs-on : github-ubuntu-latest-s # Custom GitHub-hosted runner for public repos
124107 name : Promote
0 commit comments