fix(ci): make gha parse variable substitutions correctly (#2865)

* feat(ci): add mock label to ci, also remove multilib

* feat: switch packages to use `arches = [...]`

* ???

Signed-off-by: madomado <madonuko@outlook.com>

* feat: add mock labels to pkgs

* feat: add condition for setup scripts and dnf builddep

* fix(ci): weird formatting issues

* wha

* if !contains?

* single quotes

* fix(ci): make gha parse variables correctly?

---------

Signed-off-by: madomado <madonuko@outlook.com>
This commit is contained in:
madomado
2025-01-03 17:19:26 +08:00
committed by GitHub
parent 40e624cf74
commit 60dd96a68f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ jobs:
dnf5 builddep -y ${dir}/*.spec
- name: Build with Andaman
run: anda build ${{ matrix.pkg.pkg }} ${{ matrix.pkg.labels['mock'] && '-c terra-${{ matrix.version }}-${{ matrix.pkg.arch }}' || '-rrpmbuild' }}
run: anda build ${{ matrix.pkg.pkg }} -c terra-${{ matrix.version }}-${{ matrix.pkg.arch }} ${{ contains(matrix.pkg.labels, 'mock') && '' || '-rrpmbuild' }}
- name: Generating artifact name
id: art
+1 -1
View File
@@ -41,7 +41,7 @@ jobs:
dnf5 builddep -y ${dir}/*.spec
- name: Build with Andaman
run: anda build ${{ matrix.pkg.pkg }} ${{ matrix.pkg.labels['mock'] && '-c terra-${{ matrix.version }}-${{ matrix.pkg.arch }}' || '-rrpmbuild' }}
run: anda build ${{ matrix.pkg.pkg }} -c terra-${{ matrix.version }}-${{ matrix.pkg.arch }} ${{ contains(matrix.pkg.labels, 'mock') && '' || '-rrpmbuild' }}
- name: Generating artifact name
id: art