Skip to content

Commit

Permalink
Create a nightly build (#771)
Browse files Browse the repository at this point in the history
* Experiment with scheduled nightly build

* Remove runs-on

* Test CI

* Only run cargo update when build is scheduled
  • Loading branch information
Niederb authored Jun 3, 2024
1 parent 96f892d commit 3a63a45
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
branches: [ master, 'polkadot-v[0-9]+.[0-9]+.[0-9]+*', 'release-polkadot-v[0-9]+.[0-9]+.[0-9]+*' ]
pull_request:
branches: [ master, 'polkadot-v[0-9]+.[0-9]+.[0-9]+*', 'release-polkadot-v[0-9]+.[0-9]+.[0-9]+*' ]
schedule:
- cron: "0 0 * * *"

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -79,6 +81,10 @@ jobs:
- name: init-rust-target
run: rustup show && rustup component add rust-src

- name: Cargo update
if: ${{ github.event_name == 'schedule' }}
run: cargo update

- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.check }}
Expand Down

0 comments on commit 3a63a45

Please sign in to comment.