Nightly builds in Fedora Copr #1369
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Nightly builds in Fedora Copr | |
on: | |
schedule: | |
- cron: '0 0 * * *' # at midnight UTC | |
# allow to run the workflow manually from GitHub web interface | |
workflow_dispatch: | |
jobs: | |
build: | |
name: 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: | |
project: [dnf-nightly, dnf5-unstable, dnf5-testing-nightly] | |
variant: ['', -sanitizers] | |
exclude: | |
- project: dnf5-unstable | |
variant: -sanitizers | |
- project: dnf5-testing-nightly | |
variant: -sanitizers | |
steps: | |
- name: Check out sources | |
uses: actions/checkout@v4 | |
- name: Setup CI | |
id: setup-ci | |
uses: ./.github/actions/setup-ci | |
with: | |
copr-user: ${{secrets.COPR_USER}} | |
copr-api-token: ${{secrets.COPR_API_TOKEN}} | |
# we don't want the workflow to continuously fail on forks | |
fail-without-copr: false | |
- name: Build in Copr | |
if: steps.setup-ci.outputs.copr-user | |
run: rpm-gitoverlay build-overlay -s overlays/${{matrix.project}} rpm copr --owner ${{steps.setup-ci.outputs.copr-user}} --project ${{matrix.project}}${{matrix.variant}} |