Skip to content

chore(deps): bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #2

chore(deps): bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows

chore(deps): bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #2

Workflow file for this run

---
name: CI
on:
pull_request:
branches: ["main", "v*"]
permissions:
contents: read
jobs:
tox-check:
name: "tox ${{ matrix.toxenv }}"
runs-on: "ubuntu-latest"
container: "{{ matrix.image }}"
strategy:
fail-fast: false
matrix:
toxenv:
- "py,py36,py39,cov"
- "ruff,mypy,pylint"
- "jslint,yamllint,maketest"
- "rpkg"
image:
- quay.io/podengo/ipa-hcc-ci:f38
- quay.io/podengo/ipa-hcc-ci:f39
steps:
- uses: "actions/checkout@v3"
with:
ref: ${{ inputs.tag || github.ref }}
- name: "Run tox for ${{ matrix.toxenv }}"
run: "tox -e ${{ matrix.toxenv }}"
srpm:
name: "srpm"
runs-on: "ubuntu-latest"
container: quay.io/podengo/ipa-hcc-ci:f39
env:
RPKGDIR: "$GITHUB_WORKSPACE/build/rpkg"
steps:
- uses: "actions/checkout@v3"
with:
fetch-depth: 0
- name: "Set git safe directory for rpkg"
run: git config --system --add safe.directory $GITHUB_WORKSPACE
- name: "Set rpkg output var"
run: echo "RPKGDIR=$GITHUB_WORKSPACE/build/rpkg" >> $GITHUB_ENV
- name: "Create rpkg output directory"
run: mkdir -p $RPKGDIR
- name: "Create spec file"
run: rpkg --verbose spec --outdir $RPKGDIR
- name: "Install dependencies"
run: dnf builddep -y --spec $RPKGDIR/ipa-hcc.spec
- name: "Build RPMs"
run: rpkg local --outdir $RPKGDIR
- name: "Store SRPM"
uses: actions/upload-artifact@v3
with:
name: srpm
retention-days: 7
path: |
${{ env.RPKGDIR }}/*.src.rpm
${{ env.RPKGDIR }}/*.spec
rpm:
name: "rpm ${{ matrix.version }}"
needs: srpm
runs-on: "ubuntu-latest"
container: quay.io/podengo/ipa-hcc-ci:${{ matrix.version }}
strategy:
fail-fast: true
matrix:
version: [8, 9]
steps:
- name: "Download SRPM artifact"
uses: actions/download-artifact@v4.1.7
with:
name: srpm
- name: "Set RPM build dir var"
run: echo "RPMBUILD=$GITHUB_WORKSPACE/rpmbuild/${{ matrix.version }}" >> $GITHUB_ENV
- name: "use our RPM build dir as top directory for rpmbuild"
run: echo "%_topdir $RPMBUILD" > ~/.rpmmacros
- name: "Create RPMBUILD directory"
run: mkdir -p $RPMBUILD
- name: "Install build dependencies"
run: yum-builddep -y $GITHUB_WORKSPACE/ipa-hcc.spec
- name: "Rebuild binary packages from source file"
run: rpmbuild --rebuild $GITHUB_WORKSPACE/ipa-hcc*.src.rpm --with client --with mockapi --with stageconsole
- name: "Create repo"
run: createrepo $RPMBUILD/RPMS
- name: "Store RPM"
uses: actions/upload-artifact@v3
with:
name: rpm-${{ matrix.version }}
retention-days: 7
path: |
${{ env.RPMBUILD }}/RPMS/*