Skip to content

Commit 0ae18dc

Browse files
authored
Merge pull request #501 from aidangarske/fix-upstream-pqc
Fix changes to pqc header file rename
2 parents fbbf6fe + be879c8 commit 0ae18dc

18 files changed

Lines changed: 246 additions & 18 deletions

.github/workflows/cmake-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches: [ 'master', 'main', 'release/**' ]
66
pull_request:
77
branches: [ '*' ]
8+
repository_dispatch:
9+
types: [nightly-trigger]
810

911
jobs:
1012
build:

.github/workflows/codespell.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches: [ 'master', 'main', 'release/**' ]
66
pull_request:
77
branches: [ '*' ]
8+
repository_dispatch:
9+
types: [nightly-trigger]
810

911
concurrency:
1012
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/fwtpm-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches: [ 'master', 'main', 'release/**' ]
66
pull_request:
77
branches: [ '*' ]
8+
repository_dispatch:
9+
types: [nightly-trigger]
810

911
jobs:
1012
# ----------------------------------------------------------------

.github/workflows/make-test-swtpm.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches: [ 'master', 'main', 'release/**' ]
66
pull_request:
77
branches: [ '*' ]
8+
repository_dispatch:
9+
types: [nightly-trigger]
810

911
jobs:
1012
build:

.github/workflows/multi-compiler.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches: [ 'master', 'main', 'release/**' ]
66
pull_request:
77
branches: [ '*' ]
8+
repository_dispatch:
9+
types: [nightly-trigger]
810

911
concurrency:
1012
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/nightly.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Nightly CI
2+
3+
# Daily fan-out to every wolfTPM workflow that listens for the
4+
# 'nightly-trigger' repository_dispatch event. Catches upstream wolfSSL
5+
# drift (e.g. header renames, API breaks) within ~24h.
6+
#
7+
# Workflows opt in by adding the listener to their `on:` block:
8+
# repository_dispatch:
9+
# types: [nightly-trigger]
10+
#
11+
# repository_dispatch is API-only — there is no UI button to trigger
12+
# these workflows by hand. Maintainers cannot accidentally fire them.
13+
# Workflows that should never be batch-triggered (e.g. hw-spdm-test on
14+
# the self-hosted Pi runner) simply don't add the listener.
15+
16+
on:
17+
schedule:
18+
# 02:00 UTC daily (offset from typical top-of-hour congestion).
19+
- cron: '17 2 * * *'
20+
21+
permissions:
22+
contents: write
23+
24+
jobs:
25+
fan-out:
26+
name: Dispatch nightly-trigger to all listening workflows
27+
runs-on: ubuntu-latest
28+
if: github.repository == 'wolfSSL/wolfTPM'
29+
30+
steps:
31+
- name: Send repository_dispatch event
32+
uses: actions/github-script@v7
33+
with:
34+
script: |
35+
await github.rest.repos.createDispatchEvent({
36+
owner: context.repo.owner,
37+
repo: context.repo.repo,
38+
event_type: 'nightly-trigger',
39+
});
40+
core.info('Dispatched nightly-trigger; all listening workflows will fire.');

.github/workflows/pqc-examples.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches: [ 'master', 'main', 'release/**' ]
66
pull_request:
77
branches: [ '*' ]
8+
repository_dispatch:
9+
types: [nightly-trigger]
810

911
jobs:
1012
pqc-examples:

.github/workflows/release-checks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
branches: [ 'master', 'main', 'release/**', 'rel_v*_prep' ]
1212
pull_request:
1313
branches: [ '**' ]
14+
repository_dispatch:
15+
types: [nightly-trigger]
1416

1517
concurrency:
1618
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/sanitizer.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches: [ 'master', 'main', 'release/**' ]
66
pull_request:
77
branches: [ '*' ]
8+
repository_dispatch:
9+
types: [nightly-trigger]
810

911
concurrency:
1012
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/seal-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ on:
1919
- 'src/tpm2_wrap.c'
2020
- 'src/fwtpm/**'
2121
- 'wolftpm/tpm2_wrap.h'
22+
repository_dispatch:
23+
types: [nightly-trigger]
2224

2325
jobs:
2426
seal-test:

0 commit comments

Comments
 (0)