Skip to content
Merged
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
32 changes: 15 additions & 17 deletions .github/workflows/rpm-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ jobs:
name: srpms
path: srpms/

- name: Build RPMs via mock (aarch64 QEMU)
- name: Build RPMs and prepare repo (aarch64 QEMU)
uses: uraimo/run-on-arch-action@v3
with:
arch: aarch64
Expand All @@ -156,11 +156,12 @@ jobs:
dockerRunArgs: |
--privileged
--volume "${{ github.workspace }}/srpms:/srpms"
--volume "${{ github.workspace }}/rpms:/rpms"
--volume "${{ github.workspace }}/output:/output"
install: |
dnf install -y --setopt=install_weak_deps=False mock createrepo_c
usermod -a -G mock root
run: |
mkdir -p /rpms
FAILED=""
for srpm in /srpms/*.src.rpm; do
echo "--- mock: $srpm ---"
Expand All @@ -177,26 +178,23 @@ jobs:
exit 1
fi

- name: Prepare repo directory
run: |
mkdir -p ${{ matrix.repo_path }}
cp rpms/*.noarch.rpm rpms/*.aarch64.rpm \
${{ matrix.repo_path }}/ 2>/dev/null || true
# Verify at least one RPM was copied
if ! ls ${{ matrix.repo_path }}/*.rpm >/dev/null 2>&1; then
echo "ERROR: No RPMs found for repo"
exit 1
fi
# Strip debug packages (large, not needed for users)
rm -f ${{ matrix.repo_path }}/*-debuginfo-* \
${{ matrix.repo_path }}/*-debugsource-*
createrepo_c ${{ matrix.repo_path }}
# Prepare repo directory inside the container (createrepo_c is here)
mkdir -p /output/${{ matrix.repo_path }}
cp /rpms/*.noarch.rpm /rpms/*.aarch64.rpm \
/output/${{ matrix.repo_path }}/ 2>/dev/null || true
if ! ls /output/${{ matrix.repo_path }}/*.rpm >/dev/null 2>&1; then
echo "ERROR: No RPMs found for repo"
exit 1
fi
rm -f /output/${{ matrix.repo_path }}/*-debuginfo-* \
/output/${{ matrix.repo_path }}/*-debugsource-*
createrepo_c /output/${{ matrix.repo_path }}

- name: Upload repo artifact
uses: actions/upload-artifact@v4
with:
name: repo-${{ matrix.target }}
path: repo/
path: output/repo/

# ---------------------------------------------------------------------------
# Stage 3: Assemble and deploy to GitHub Pages
Expand Down
Loading