Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
prestist committed Jan 9, 2025
1 parent cc54f0c commit cb7a72a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .copr/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ srpm:
sed -ie 's/^Source1/# Source1/g' rust-afterburn.spec # we don't vendor
spectool -g rust-afterburn.spec # download any remaining sources (e.g. coreos-installer-dracut)
rpmbuild -bs --define "_sourcedir ${PWD}" --define "_specdir ${PWD}" --define "_builddir ${PWD}" --define "_srcrpmdir ${PWD}" --define "_rpmdir ${PWD}" --define "_buildrootdir ${PWD}/.build" rust-afterburn.spec
mv *.src.rpm $$outdir
mv *.src.rpm $outdir
6 changes: 2 additions & 4 deletions .github/workflows/rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
steps:
# need to install git before checkout to get a git repo
- name: Install packages
run: dnf install -y git make mock
run: dnf5 install -y git make mock
- name: Check out repository
uses: actions/checkout@v4
# fetch tags for versioning
Expand All @@ -34,13 +34,11 @@ jobs:
# https://github.com/actions/checkout/issues/766
- name: Mark git checkout as safe
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Check RPM version
run: rpm --version
- name: Build RPMs
run: |
mkdir rpms
make -f .copr/Makefile srpm outdir=rpms
mock --rebuild --enablerepo=updates-testing rpms/*.src.rpm
mock --debug --rebuild --enablerepo=updates-testing rpms/*.src.rpm
find /var/lib/mock -wholename '*/result/*.rpm' | xargs mv -t rpms
- name: Archive RPMs
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit cb7a72a

Please sign in to comment.