-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add scheduled GH workflow for nightly
- Loading branch information
1 parent
0e6cab4
commit d7d1427
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: ci-nightly | ||
|
||
on: | ||
schedule: | ||
- cron: 0 6,18 * * * | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Rust toolchain | ||
run: | | ||
rustup update | ||
rustup toolchain install nightly --profile minimal | ||
rustup component add rustfmt --toolchain nightly | ||
rustup component add clippy --toolchain nightly | ||
- name: Install just | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: just | ||
|
||
- name: Install protoc | ||
uses: arduino/setup-protoc@v2 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set up Rust cache | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Check code format | ||
run: just fmt_check | ||
|
||
- name: Run linter | ||
run: just lint | ||
|
||
- name: Run tests | ||
run: just test | ||
|
||
- name: Run doc | ||
run: just doc |