Skip to content

Commit 0760f7a

Browse files
committed
Add nightly build
1 parent 5b49d2f commit 0760f7a

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Nightly Safety-Critical Rust Coding Guidelines Build Schedule
2+
3+
on:
4+
schedule:
5+
# Run at 02:00 UTC every day
6+
- cron: '0 2 * * *'
7+
# Optional: Allow manual triggering for testing
8+
workflow_dispatch:
9+
10+
jobs:
11+
trigger-build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
17+
- name: Log build start
18+
run: echo "Starting nightly build at $(date)"
19+
20+
# This is a "setup" job that can add pre-build steps if needed in the future
21+
22+
run-build:
23+
needs: trigger-build
24+
# Call the main build workflow
25+
uses: ./.github/workflows/safety-critical-rust-coding-guidelines.yml
26+
# If your main workflow is in a different file, adjust the path accordingly
27+
28+

.github/workflows/safety-critical-rust-coding-guidelines.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ on:
77
pull_request:
88
paths:
99
- 'subcommittee/coding-guidelines/initiatives/safety-critical-rust-coding-guidelines/**'
10+
# Add workflow_call trigger to make this workflow reusable
11+
workflow_call:
12+
# You can add inputs here if needed in the future
13+
# inputs:
14+
# example_input:
15+
# required: false
16+
# type: string
17+
# default: 'default value'
1018

1119
jobs:
1220
build:

0 commit comments

Comments
 (0)