Skip to content

🧱 jobs

🧱 jobs #416

Workflow file for this run

# Authors:
# Unai Martinez-Corral
# <unai.martinezcorral@ehu.eus>
#
# Copyright Unai Martinez-Corral
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
name: .scheduler
run-name: >-
🧱 ${{ case(
contains(fromJSON('["schedule", "workflow_dispatch"]'), github.event.name),
format('{0} {1}', github.event.name, github.sha),
github.event.name == 'pull_request',
format('#{0} {1}', github.event.pull_request.number, github.event.pull_request.title),
github.event.head_commit.message
)}}
on:
push:
pull_request:
schedule:
- cron: '17 0 * * 5'
workflow_dispatch:
inputs:
keys-trigger:
description: 'Space-separated list of keys to trigger workflow dispatches.'
required: false
type: string
keys-call:
description: 'Space-separated list of keys to call workflows.'
required: false
type: string
rerun:
description: 'Maximum number of attempts to run (failing) jobs.'
required: false
default: 3
type: string
skip-release:
description: 'Skip pushing and mirroring to container registries.'
required: false
default: false
type: string
jobs:
dispatch:
runs-on: ubuntu-latest
outputs:
cout: ${{ steps.dispatch.outputs.cout }}
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
steps:
- name: 🗑️ Delete old workflow runs
run: |
gh api rate_limit
gh run list --created "<$(date -d '2 days ago' '+%Y-%m-%d')" -L 500 --json databaseId -q '.[].databaseId' \
| xargs -r -n1 -P4 gh run delete
- name: 🔔 Dispatch and generate call matrix
id: dispatch
uses: $/.github/self-script
with:
scriptfile: dispatch.py
env:
GH_INPUT_KEYS_TRIGGER: ${{ inputs.keys-trigger }}
GH_INPUT_KEYS_CALL: ${{ inputs.keys-call }}
GH_INPUT_RERUN: ${{ inputs.rerun }}
GH_INPUT_SKIP-RELEASE: ${{ inputs.skip-release }}
GH_MESSAGE: >-
${{
github.event.name == 'pull_request'
&& format('#{0} {1}', github.event.pull_request.number, github.event.pull_request.title)
|| github.event.head_commit.message
}}
HDLC_PUSH_TRIGGER: >-
#
HDLC_PUSH_CALL: >-
boolector
nextpnr-build:T>nextpnr-prjs>nextpnr
# netgen
# nvc
# irsim
# conda/f4pga/xc7/toolchain>f4pga-xc7-devices>conda/f4pga/xc7
# f4pga-eos-s3
# magic>magic-irsim
# sim>osvb>cosim>gnuplot
HDLC_SCHEDULE_TRIGGER: >-
# formal
# impl
HDLC_SCHEDULE_CALL: >-
apicula
arachne-pnr
base
boolector
conda
conda/f4pga/xc7/toolchain>f4pga-xc7-devices>conda/f4pga/xc7
f4pga-eos-s3
cvc
ghdl
ghdl-yosys-plugin
gtkwave
icestorm
irsim
iverilog
klayout
magic>magic-irsim
netgen
nextpnr-build:T>nextpnr-prjs>nextpnr
nvc
openfpgaloader
openroad
pono
prjoxide
prjtrellis
prog
sby
sim>osvb>cosim>gnuplot
superprove
verible
verilator
vtr
xschem
xyce
yices2
yosys
z3
# base: *
# formal:
# - ghdl
# - yosys
# - ghdl-yosys-plugin
# - boolector
# - cvc
# - pono
# - sby
# - superprove
# - yices2
# - z3
# ghdl-yosys-plugin:
# - ghdl
# - yosys
# impl:
# - ghdl
# - ghdl-yosys-plugin
# - icestorm
# f4pga:
# - conda
# sim:
# - ghdl
# - iverilog
# - nvc
# prog:
# - openfpgaloader
call:
if: fromJSON(needs.dispatch.outputs.cout).matrix != 'skip'
needs: dispatch
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(needs.dispatch.outputs.cout).matrix }}
name: ${{ matrix.key }}
uses: $/.github/workflows/.build-test-release.yml
with:
key: ${{ matrix.key }}
skip-test: ${{ matrix.skip-test }}
skip-release: ${{ fromJSON(needs.dispatch.outputs.cout).skip-release }}
secrets: inherit