aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-05-20 10:52:57 +0200
committerEgor Tensin <egor@tensin.name>2026-05-20 10:52:57 +0200
commit4d483cf4df99de78d42926d767104c4df5081fda (patch)
treebed5cdf2edb173f76121faae76fd30de4d2d6070 /.github/workflows/ci.yml
parentworkflows: split out the PyPI publishing workflow (diff)
downloadcmake-common-4d483cf4df99de78d42926d767104c4df5081fda.tar.gz
cmake-common-4d483cf4df99de78d42926d767104c4df5081fda.zip
workflows: rework the publish workflow
For some reason, when using workflow_run: trigger, it gets triggered on any listed workflow, not on all of them as I would expect.
Diffstat (limited to '')
-rw-r--r--.github/workflows/ci.yml (renamed from .github/workflows/publish.yml)36
1 files changed, 28 insertions, 8 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/ci.yml
index 6d1c560..28c9ea5 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/ci.yml
@@ -1,18 +1,38 @@
-name: Publish
+name: CI
on:
- workflow_run:
- workflows:
- - Basic
- - Boost (toolsets)
- - Examples (toolsets)
- types: [completed]
+ push:
+ paths-ignore:
+ - 'docs/**'
+ - 'README.md'
+ schedule:
+ # Weekly, at 01:30 AM on Friday (somewhat randomly chosen).
+ - cron: '30 01 * * 5'
+ workflow_dispatch:
jobs:
+ basic:
+ uses: ./.github/workflows/basic.yml
+
+ boost_download:
+ uses: ./.github/workflows/boost_download.yml
+
+ boost_toolsets:
+ uses: ./.github/workflows/boost_toolsets.yml
+
+ example_toolsets:
+ uses: ./.github/workflows/example_toolsets.yml
+
+ msvc_versions:
+ uses: ./.github/workflows/msvc_versions.yml
+
# Build a Python package and upload to PyPI.
publish:
runs-on: ubuntu-latest
- if: github.event.workflow_run.conclusion == 'success'
+ needs:
+ - basic
+ - boost_toolsets
+ - example_toolsets
name: Publish
steps:
- name: Checkout