Skip to content

Commit

Permalink
Create rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusc93 authored Jul 4, 2024
1 parent 71bdd70 commit ef7e368
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Checks

on:
push:
branches: [ "libp2p-next" ]
pull_request:
branches: [ "libp2p-next" ]

env:
CARGO_TERM_COLOR: always

jobs:
check-native:
runs-on: ubuntu-latest
steps:
- name: Check (native)
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- run: cargo check

check-wasm:
runs-on: ubuntu-latest
steps:
- name: Check (native)
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
target: wasm32-unknown-unknown
- run: cargo check --target wasm32-unknown-unknown

0 comments on commit ef7e368

Please sign in to comment.