-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0038db8
commit c5bf6d1
Showing
1 changed file
with
38 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,38 @@ | ||
name: CI | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
platform: [ ubuntu-latest ] | ||
node-version: [ 20 ] | ||
rust-version: [ stable, nightly ] | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install build dependencies | ||
run: sudo apt-get update && sudo apt-get -y install protobuf-compiler | ||
|
||
- name: Use Rust toolchain | ||
run: rustup update ${{ matrix.rust-version }} && rustup default ${{ matrix.rust-version }} | ||
|
||
- name: Install rustfmt | ||
run: rustup component add rustfmt | ||
|
||
- name: Install clippy | ||
run: rustup component add clippy | ||
|
||
- name: Compile | ||
run: cargo build | ||
|
||
- name: Format | ||
run: cargo fmt --check | ||
|
||
- name: Clippy | ||
run: cargo clippy |