Scheduled CI #475
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: Scheduled CI | ||
Check failure on line 1 in .github/workflows/scheduled-ci.yml GitHub Actions / Scheduled CIInvalid workflow file
|
||
run-name : "Scheduled Feel++ CI [${{ matrix.flavor }}/${{ matrix.version }}]" | ||
on: | ||
schedule: | ||
# run every day at 2am | ||
- cron: '30 0 * * 0' | ||
- cron: '30 0 * * 1' | ||
- cron: '30 0 * * 2' | ||
- cron: '30 0 * * 3' | ||
- cron: '30 0 * * 4' | ||
- cron: '30 0 * * 5' | ||
- cron: '30 0 * * 6' | ||
jobs: | ||
activate: | ||
runs-on: ubuntu-latest | ||
if: | | ||
github.repository == 'feelpp/feelpp' && | ||
!startsWith(github.event.head_commit.message, 'Release ') && | ||
!contains(github.event.head_commit.message, 'ci skip') | ||
steps: | ||
- run: echo ok go | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
# - {flavor: ubuntu, version: "20.04", dotw: '0'} | ||
- {flavor: ubuntu, version: "22.04", dotw: '1', preset: "release-clang-cmake"} | ||
- {flavor: ubuntu, version: "24.04", dotw: '2', preset: "release-clang-cmake"} | ||
- {flavor: ubuntu, version: "24.04", dotw: '3', preset: "release-clang-cpp20-cmake"} | ||
# - {flavor: debian, version: "testing", dotw: '3'} | ||
# - {flavor: debian, version: "sid", dotw: '4'} | ||
# - {flavor: fedora, version: "36", dotw: '5'} | ||
- {flavor: fedora, version: "37", dotw: '6'} | ||
name: Trigger build on ${{ matrix.flavor }}-${{ matrix.version }} | ||
runs-on: ubuntu-latest | ||
needs: activate | ||
steps: | ||
- | ||
if: ${{ github.event.schedule == format('30 0 * * {0}', matrix.dotw ) }} | ||
name: "Trigger build [${{ github.event.schedule }}] ${{ matrix.flavor }}-${{ matrix.version }}" | ||
uses: peter-evans/repository-dispatch@v3 | ||
with: | ||
token: ${{ secrets.CR_PAT }} | ||
repository: feelpp/feelpp | ||
event-type: trigger-feelpp-build | ||
client-payload: '{"flavor":"${{ matrix.flavor }}","version":"${{ matrix.version }}", "preset":"${{ matrix.preset }}"' | ||