Skip to content

Commit

Permalink
Merge pull request #61 from ideal-lab5/jg/github-workflows
Browse files Browse the repository at this point in the history
ops: add workflows
  • Loading branch information
juangirini authored Feb 7, 2025
2 parents 0d2c72a + 0009f4a commit c5fbf44
Show file tree
Hide file tree
Showing 16 changed files with 12,236 additions and 28 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/rust.yml
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
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ release.json
rls*.log
runtime/wasm/target/
substrate.code-workspace
target*/
Cargo.lock
target*/
Loading

0 comments on commit c5fbf44

Please sign in to comment.