Skip to content

Commit 4b82537

Browse files
committed
wip nightly cronjob CI
1 parent f7972c9 commit 4b82537

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/build-test.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,29 @@ on:
1818
branches: [ main ]
1919
pull_request:
2020
branches: '*'
21+
workflow_dispatch:
22+
inputs:
23+
nightly:
24+
description: "Test on latest nightly"
25+
required: true
26+
default: false
27+
type: boolean
28+
schedule:
29+
# Run nightly cronjob CI every day at 14 UTC / 6AM PST / 3PM CET
30+
- cron: '0 14 * * *'
2131

2232
jobs:
2333

2434
# Build job - basic smoke test
2535
check:
2636
runs-on: ubuntu-latest
2737
steps:
38+
- name: Set the rust toolchain to use
39+
# pull_request is a fake for me to be able to test this for now
40+
if: "github.event.schedule || github.event.pull_request || (github.event.workflow_dispatch && inputs.nightly)"
41+
run: |
42+
rustup default nightly
43+
echo "ICU4X_NIGHTLY_TOOLCHAIN=nightly" >> >> $GITHUB_ENV
2844
- uses: actions/checkout@v2
2945
- name: Load the default Rust toolchain via the rust-toolchain file.
3046
run: rustup show

0 commit comments

Comments
 (0)