Skip to content

Commit

Permalink
Modify the srpm-builds chroot too
Browse files Browse the repository at this point in the history
In a recent change, Copr started to use a new chroot in order to
generate SRPMs. This new chroot also need to be modified in order to
enable the RPM conditional snapshot_build.
  • Loading branch information
tuliom committed Mar 19, 2024
1 parent a499835 commit 503f987
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/fedora-copr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,14 @@ jobs:
source scripts/functions.sh
[[ ! -z "${{ matrix.extra_script_file }}" ]] && source ${{ matrix.extra_script_file }}
if [ "${{ matrix.needs_llvm_snapshot_builder }}" == "true" ]; then
# Modify srpm chroot to know about llvm-snapshot-builder and about the --with=snapshot_build option
copr edit-chroot \
--repos "https://download.copr.fedorainfracloud.org/results/%40fedora-llvm-team/llvm-compat-packages/srpm-builds/" \
--rpmbuild-with "snapshot_build" \
--packages "llvm-snapshot-builder" \
${{ env.project_today }}/srpm-builds
fi
for chroot in ${{ env.chroots }}; do
if [ "${{ matrix.needs_llvm_snapshot_builder }}" == "true" ]; then
# Modify chroot to know about compat package repo and about the --with=snapshot_build option
Expand Down

0 comments on commit 503f987

Please sign in to comment.