Skip to content

Commit 501a3a0

Browse files
committed
CI: Update craft target names
1 parent a0fddb6 commit 501a3a0

File tree

2 files changed

+20
-24
lines changed

2 files changed

+20
-24
lines changed

.craft.ini

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ General/ABI = windows-cl-msvc2022-x86_64
6666
General/ABI = windows-cl-msvc2022-x86_64
6767
Compile/BuildType = Debug
6868

69-
[macos-64-clang]
70-
General/ABI = macos-64-clang
69+
[macos-clang-x86]
70+
General/ABI = macos-clang-x86
7171
# Packager/PackageType = MacPkgPackager
7272

73-
[macos-64-clang-debug]
74-
General/ABI = macos-64-clang
73+
[macos-clang-x86-debug]
74+
General/ABI = macos-clang-x86
7575
Compile/BuildType = Debug
7676

7777
[macos-clang-arm64]
@@ -81,14 +81,14 @@ General/ABI = macos-clang-arm64
8181
General/ABI = macos-clang-arm64
8282
Compile/BuildType = Debug
8383

84-
[linux-64-gcc]
85-
General/ABI = linux-64-gcc
84+
[linux-gcc-x86_64]
85+
General/ABI = linux-gcc-x86_64
8686

87-
[linux-64-gcc-BlueprintSettings]
87+
[linux-gcc-x86_64-BlueprintSettings]
8888
libs/qt6/qtbase.withDBus = True
8989

90-
[linux-64-gcc-debug]
91-
General/ABI = linux-64-gcc
90+
[linux-gcc-x86_64-debug]
91+
General/ABI = linux-gcc-x86_64
9292
Compile/BuildType = Debug
9393

9494
[linux-64-gcc-debug-BlueprintSettings]

.github/workflows/main.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)