Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: github-action-rpm-debug #1154

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
11 changes: 8 additions & 3 deletions .github/workflows/rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,26 @@ 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
with:
fetch-depth: 0
fetch-depth: 1
# https://github.com/actions/checkout/issues/766
- name: Mark git checkout as safe
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Build RPMs
run: |
curl -o /etc/yum.repos.d/fedora-updates-archive.repo https://src.fedoraproject.org/rpms/fedora-repos/raw/rawhide/f/fedora-updates-archive.repo
dnf install -y libc-2.40-14.fc41
mkdir rpms
make -f .copr/Makefile srpm outdir=rpms
mock --rebuild --enablerepo=updates-testing rpms/*.src.rpm
sudo /usr/libexec/mock/mock --rebuild --enablerepo=updates-testing rpms/*.src.rpm
find /var/lib/mock -wholename '*/result/*.rpm' | xargs mv -t rpms
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
- name: Archive RPMs
uses: actions/upload-artifact@v4
with:
Expand Down
Loading
Loading