-
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.
Merge pull request #61 from ideal-lab5/jg/github-workflows
ops: add workflows
- Loading branch information
Showing
16 changed files
with
12,236 additions
and
28 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,54 @@ | ||
name: Rust | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Rust stable | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Install Rust nightly | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
override: false | ||
|
||
- name: Install rustfmt for nightly | ||
run: rustup component add --toolchain nightly rustfmt | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y protobuf-compiler | ||
- name: Install Rust dependencies | ||
run: cargo fetch | ||
|
||
- name: Build | ||
run: cargo build --verbose | ||
|
||
- name: Run cargo fmt | ||
run: cargo +nightly fmt -- --check | ||
|
||
# TODO: Uncomment the following lines to run clippy and tests | ||
# https://github.com/ideal-lab5/idn-sdk/issues/64 | ||
# - name: Run cargo clippy | ||
# run: cargo clippy -- -D warnings | ||
|
||
# - name: Run cargo test | ||
# run: cargo test --verbose |
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 |
---|---|---|
|
@@ -38,5 +38,4 @@ release.json | |
rls*.log | ||
runtime/wasm/target/ | ||
substrate.code-workspace | ||
target*/ | ||
Cargo.lock | ||
target*/ |
Oops, something went wrong.