ci: Remove "ci" GitHub Actions workflow
We would like to switch to exclusively using Packit for building and testing pull requests, so we are retiring this GitHub Action workflow. In order to fully disable the action, this commit must be applied on each branch in the upstream DNF5 repository. Otherwise, the action might be triggered by a pull request to some stale branch.
This commit is contained in:
parent
354f7b6cad
commit
2eb33d2066
|
@ -1,110 +0,0 @@
|
|||
---
|
||||
name: DNF 5 CI
|
||||
on: pull_request_target
|
||||
|
||||
jobs:
|
||||
package-build:
|
||||
name: Package Build
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/rpm-software-management/dnf-ci-host
|
||||
strategy:
|
||||
fail-fast: false # don't fail all matrix jobs if one of them fails
|
||||
matrix:
|
||||
compiler: ['', clang] # gcc is the default
|
||||
steps:
|
||||
- name: Check out ci-dnf-stack
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: rpm-software-management/ci-dnf-stack
|
||||
|
||||
- name: Setup CI
|
||||
id: setup-ci
|
||||
uses: ./.github/actions/setup-ci
|
||||
with:
|
||||
copr-user: ${{secrets.COPR_USER}}
|
||||
copr-api-token: ${{secrets.COPR_API_TOKEN}}
|
||||
|
||||
- name: Check out sources
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: gits/${{github.event.repository.name}}
|
||||
ref: ${{github.event.pull_request.head.sha}} # check out the PR HEAD
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Rebase the pull request on target branch
|
||||
run: |
|
||||
pushd gits/${{github.event.repository.name}}
|
||||
git config user.name github-actions
|
||||
git config user.email github-actions@github.com
|
||||
echo "Rebasing \"`git log --oneline -1`\" on ${{github.event.pull_request.base.ref}}: \"`git log --oneline -1 origin/${{github.event.pull_request.base.ref}}`\""
|
||||
git rebase origin/${{github.event.pull_request.base.ref}}
|
||||
popd
|
||||
|
||||
- name: Build in Copr
|
||||
run: |
|
||||
CHROOTS="fedora-36-x86_64, fedora-37-x86_64, fedora-rawhide-x86_64"
|
||||
PROJECT_NAME="CI-libdnf5-pr${{github.event.pull_request.number}}"
|
||||
if [[ -n "${{matrix.compiler}}" ]]; then
|
||||
PROJECT_NAME+="-${{matrix.compiler}}"
|
||||
fi
|
||||
rpm-gitoverlay --gitdir=gits build-overlay -s overlays/dnf5-unstable rpm --with "${{matrix.compiler}}" copr --owner "${{steps.setup-ci.outputs.copr-user}}" --project "$PROJECT_NAME" --chroots "$CHROOTS" --delete-project-after-days=7 --additional-repos="copr://rpmsoftwaremanagement/dnf-nightly"
|
||||
|
||||
copr-build:
|
||||
name: Copr Build
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/rpm-software-management/dnf-ci-host
|
||||
outputs:
|
||||
package-urls: ${{steps.copr-build.outputs.package-urls}}
|
||||
steps:
|
||||
- name: Check out ci-dnf-stack
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: rpm-software-management/ci-dnf-stack
|
||||
|
||||
- name: Setup CI
|
||||
id: setup-ci
|
||||
uses: ./.github/actions/setup-ci
|
||||
with:
|
||||
copr-user: ${{secrets.COPR_USER}}
|
||||
copr-api-token: ${{secrets.COPR_API_TOKEN}}
|
||||
|
||||
- name: Check out sources
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: gits/${{github.event.repository.name}}
|
||||
ref: ${{github.event.pull_request.head.sha}} # check out the PR HEAD
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Run Copr Build
|
||||
id: copr-build
|
||||
uses: ./.github/actions/copr-build
|
||||
with:
|
||||
copr-user: ${{steps.setup-ci.outputs.copr-user}}
|
||||
overlay: dnf5-ci
|
||||
|
||||
integration-tests:
|
||||
name: DNF Integration Tests
|
||||
needs: copr-build
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/rpm-software-management/dnf-ci-host
|
||||
options: --privileged
|
||||
volumes:
|
||||
# A workaround for an undeterministic "OCI not found" error, see
|
||||
# https://github.com/containers/podman/issues/10321
|
||||
- /var/lib/mycontainer:/var/lib/containers
|
||||
strategy:
|
||||
matrix:
|
||||
extra-run-args: [--tags dnf5 --command dnf5, --tags dnf5daemon --command dnf5daemon-client]
|
||||
steps:
|
||||
- name: Check out ci-dnf-stack
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: rpm-software-management/ci-dnf-stack
|
||||
|
||||
- name: Run Integration Tests
|
||||
uses: ./.github/actions/integration-tests
|
||||
with:
|
||||
package-urls: ${{needs.copr-build.outputs.package-urls}}
|
||||
extra-run-args: ${{matrix.extra-run-args}}
|
Loading…
Reference in New Issue