diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 8605a1585b8..57c31596c2d 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -18,6 +18,16 @@ 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: @@ -25,6 +35,12 @@ jobs: 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