mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 13:45:15 -07:00
3c803483ac
Auto-merging is a useful feature by github, but it requires required checks which requires a few adjustments. The primary change is that required checks can't use `paths` or `paths-ignore` as that risks not running the job, and required checks must always be run. A workaround for this is to introduce a dummy workflow which is used for every path not used in the real workflow. That way the required job is "always" run as far as github is concerned. The workaround is unweildly so it's only useful to do it for costly workflows where the potential benefits are big. If not it's better to simply remove any `paths` or `paths-ignore` from a workflow instead.
34 lines
854 B
YAML
34 lines
854 B
YAML
name: build_dummy
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- 'master'
|
|
- 'release-[0-9]+.[0-9]+'
|
|
# This needs to be an exact complement of `paths` in the build.yml workflow.
|
|
# This is required to bypass required checks since a required job is always
|
|
# needed to run.
|
|
paths-ignore:
|
|
- '**.cmake'
|
|
- '**/CMakeLists.txt'
|
|
- '**/CMakePresets.json'
|
|
- 'cmake.*/**'
|
|
- '.github/**'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
old-cmake:
|
|
name: Test oldest supported cmake
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
steps:
|
|
- run: echo "success"
|
|
|
|
use-existing-src:
|
|
name: Test USE_EXISTING_SRC_DIR=ON builds with no network access
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: echo "success"
|