feat(ci)!: switch to rpmbuild (#2792)

* feat(ci)!: switch to rpmbuild

* fix: support extra_repos

* let's try this instead

* fix the funny condition

* fix: disable gpgcheck

This should be fine because checksum is checked for the repomd and the
packages too
This commit is contained in:
madomado
2025-01-01 04:23:45 +08:00
committed by GitHub
parent 27b491a91d
commit 3566e7eddf
7 changed files with 66 additions and 35 deletions
+12 -12
View File
@@ -52,26 +52,26 @@ jobs:
with:
fetch-depth: 0
- name: Checkout latest Mock configs
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: terrapkg/mock-configs
path: mock-configs
- name: Set up git repository
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Include custom build template instead of package default
- name: CI Setup Script
run: |
cp -v mock-configs/terra.tpl /etc/mock/templates/terra.tpl
dir=$(dirname ${{ matrix.pkg.pkg }})
if [ -f $dir/ci_setup.rhai ]; then
anda run $dir/ci_setup.rhai --labels script_path=$dir/ci_setup.rhai
fi
- name: Install Build Dependencies
run: |
dir=$(dirname ${{ matrix.pkg.pkg }})
dnf5 builddep -y ${dir}/*.spec
- name: Build with Andaman
run: anda build ${{ matrix.pkg.pkg }} --package rpm -c mock-configs/terra-${{ matrix.version }}-${{ matrix.pkg.arch }}.cfg
run: anda build ${{ matrix.pkg.pkg }} -rrpmbuild
- name: Build with Andaman (alternate arch)
if: |
matrix.pkg.arch == 'x86_64' && matrix.pkg.labels['multilib']
if: matrix.pkg.arch == 'x86_64' && matrix.pkg.labels['multilib']
run: anda build ${{ matrix.pkg.pkg }} --package rpm -c mock-configs/terra-${{ matrix.version }}-i386.cfg
- name: Generating artifact name