@@ -28,21 +28,17 @@ jobs:
2828 fail-fast : true
2929 matrix :
3030 include :
31- - name : windows-cl-x86_64
32- target : windows-cl-msvc2022-x86_64
31+ - target : windows-cl-msvc2022-x86_64
3332 os : windows-latest
3433 container :
35- # TODO: align the target with the name
36- - name : macos-clang-arm64
37- target : macos-clang-arm64
34+ - target : macos-clang-arm64
3835 os : macos-latest
3936 container :
40- - name : linux-gcc-x86_64
41- target : linux-64-gcc
37+ - target : linux-gcc-x86_64
4238 os : ubuntu-latest
4339 container : ghcr.io/opencloud-eu/ci-docker-desktop/appimage:latest
4440
45- name : ${{ matrix.name }}
41+ name : ${{ matrix.target }}
4642
4743 runs-on : ${{ matrix.os }}
4844
@@ -55,13 +51,13 @@ jobs:
5551
5652 steps :
5753 - name : Check out full source code for tooling
58- if : ${{ matrix.name == 'linux-gcc-x86_64' }}
54+ if : ${{ matrix.target == 'linux-gcc-x86_64' }}
5955 uses : actions/checkout@v4
6056 with :
6157 fetch-depth : 0
6258
6359 - name : Check out latest commit
64- if : ${{ matrix.name != 'linux-gcc-x86_64' }}
60+ if : ${{ matrix.target != 'linux-gcc-x86_64' }}
6561 uses : actions/checkout@v4
6662
6763 - name : Restore and update cache
@@ -124,7 +120,7 @@ jobs:
124120 & "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --install-deps opencloud/opencloud-desktop
125121
126122 - name : QML format lint
127- if : matrix.name == 'linux-gcc-x86_64'
123+ if : matrix.target == 'linux-gcc-x86_64'
128124 run : |
129125 & "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c libs/qt6/qttools
130126 & "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --run pwsh -c "git ls-files *.qml | %{ qmlformat -i `$_}"
@@ -135,7 +131,7 @@ jobs:
135131 }
136132
137133 - name : clang-format format lint
138- if : matrix.name == 'linux-gcc-x86_64'
134+ if : matrix.target == 'linux-gcc-x86_64'
139135 run : |
140136 & "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c libs/llvm
141137 & "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --run git clang-format --force ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
@@ -170,7 +166,7 @@ jobs:
170166 & "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --run python3 -m clang_html "$([System.IO.Path]::GetTempPath())/clang-tidy.log" -o "${env:GITHUB_WORKSPACE}/binaries/clang-tidy.html"
171167
172168 - name : Package
173- if : matrix.name != 'macos-clang-arm64'
169+ if : matrix.target != 'macos-clang-arm64'
174170 run : |
175171 & "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache --package opencloud/opencloud-desktop
176172
@@ -188,12 +184,12 @@ jobs:
188184 - name : Upload artifacts
189185 uses : actions/upload-artifact@v4
190186 with :
191- name : ${{ matrix.name }}-${{ github.run_number }}
187+ name : ${{ matrix.target }}-${{ github.run_number }}
192188 path : ${{ github.workspace }}/binaries/*
193189
194190 - name : Upload appx
195191 if : ${{ matrix.os == 'windows-latest' && github.event_name != 'pull_request' }}
196192 uses : actions/upload-artifact@v4
197193 with :
198- name : ${{ matrix.name }}-appx-${{ github.run_number }}
194+ name : ${{ matrix.target }}-appx-${{ github.run_number }}
199195 path : ${{ github.workspace }}/appx/*
0 commit comments