Skip to content

Commit

Permalink
wip nightly cronjob CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Nov 21, 2022
1 parent f7972c9 commit 64c6791
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,29 @@ on:
branches: [ main ]
pull_request:
branches: '*'
workflow_dispatch:
inputs:
nightly:
description: "Test on latest nightly"
required: true
default: false
type: boolean
schedule:
# Run nightly cronjob CI every day at 14 UTC / 6AM PST / 3PM CET
- cron: '0 14 * * *'

jobs:

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

0 comments on commit 64c6791

Please sign in to comment.