Skip to content

Commit

Permalink
[CI] Refactor the GHA code that nightly builds
Browse files Browse the repository at this point in the history
by delegating the schedule trigger to one file per branch.
  • Loading branch information
dpiparo committed Mar 3, 2024
1 parent 33ba26d commit ce7d2a1
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/root-630.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: 'ROOT 6.30'

on:
schedule:
- cron: '25 14 * * *'
- cron: '0 1 * * *'

workflow_dispatch:
inputs:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/root-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
name: 'ROOT CI'

on:
schedule:
- cron: '0 1 * * *'

# https://github.com/root-project/root/pull/12112#issuecomment-1411004278
pull_request:
branches:
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/root-master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

name: 'ROOT Main'

on:
schedule:
- cron: '0 1 * * *'

workflow_dispatch:
inputs:
incremental:
description: 'Do incremental build'
type: boolean
required: true
default: true
binaries:
description: Create binary packages and upload them as artifacts
type: boolean
required: true
default: false
buildtype:
description: The CMAKE_BUILD_TYPE to use for non-Windows.
type: choice
options:
- Debug
- RelWithDebInfo
- Release
- MinSizeRel
default: Debug
required: true

jobs:
run_nightlies:
uses: root-project/root/.github/workflows/root-ci.yml@master
with:
base_ref: 'master'
head_ref: 'master'
ref_name: 'master'
secrets: inherit

0 comments on commit ce7d2a1

Please sign in to comment.