lean4-htt/.github/workflows
Joachim Breitner 367ac01279
chore: trim CI set by default (#2986)
The goal of this change is to run a trimmed-down CI on PRs by default,
but allows opt-in the full CI as necessary.

### Specification

The CI workflow runs in “quick” mode if it was triggered from a pull
request, and that pull request does not have the `full-ci` label set.

In “quick” mode the build matrix contains fewer jobs. At the moment
only:

* Linux-release, to get the PR releases.

In non-quick mode everything should be as before.

### Implementation notes

I created a `configure` job that combines all the previous `set-` jobs,
I guess this is faster than firing up separate jobs.

The matrix is calculated in this job; this seems to be the cleanest way
to get a dynamic matrix going (experiments using `exclude` failed). The
downside is that the matrix is now in JSON rather than Yaml syntax. The
upside is that we can (later) make it’s calculation simpler, e.g. set
default `shell` values etc.

I was not able to make it so that CI runs when the `full-ci` label is
added, but don’t do anything otherwise. I think it can be done with
another workflow listening to `labeled` and then triggering this one,
but let’s do that separately. For now, add the label and then push (or
close and reopen).

The checks
```
  if: matrix.build-stage2 || matrix.check-stage3
  if: matrix.check-stage3
```
were dead code, we did not have these fields in the matrix anymore, so I
replaced them with
```
  if: matrix.test-speedcenter
```
2023-11-29 13:24:45 +00:00
..
backport.yml chore: CI: add backport action 2023-09-25 11:33:14 +02:00
changelog.yml chore: CI: fix Update changelog action's commit message 2022-10-28 23:01:49 +02:00
ci.yml chore: trim CI set by default (#2986) 2023-11-29 13:24:45 +00:00
labels-from-comments.yml feat: add labels from comments (#2460) 2023-08-29 14:09:20 +10:00
nix-ci.yml chore: Run CI on all PRs, even base ≠ master (#2955) 2023-11-23 21:50:30 +00:00
pr-release.yml fix: remove unnecessary step in pr-release.yml (#2976) 2023-11-28 13:18:20 +00:00
pr-title.yml chore: make PR title check work as a merge_group check (#2987) 2023-11-29 12:03:20 +00:00
stale.yml chore: activate stale PR labeler 2023-09-20 09:18:46 +02:00