Skip to content

Scheduled CI

Scheduled CI #475

Workflow file for this run

name: Scheduled CI

Check failure on line 1 in .github/workflows/scheduled-ci.yml

View workflow run for this annotation

GitHub Actions / Scheduled CI

Invalid workflow file

The workflow is not valid. .github/workflows/scheduled-ci.yml (Line: 2, Col: 12): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.flavor
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 }}"'