forked from rpm-software-management/ci-dnf-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.18 KB
/
nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
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]
variant: ['', -sanitizers]
exclude:
- project: dnf5-unstable
variant: -sanitizers
steps:
- name: Check out sources
uses: actions/checkout@v2
- 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}}