Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsso committed Nov 3, 2023
2 parents 07280e7 + 4058eca commit d61dde8
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/rust-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,31 @@ concurrency:
cancel-in-progress: true

jobs:
rust-checks:
rust-fmt:
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v4

- name: Install Protoc
uses: arduino/setup-protoc@v1
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
version: "3.6.1"

- name: Install clippy and fmt
run: rustup component add clippy rustfmt

- name: Add wasm32-unknown-unknown target
run: rustup target add wasm32-unknown-unknown

- name: Run Format Checks
uses: actions-rs/cargo@v1
toolchain: nightly
components: rustfmt
- uses: actions-rust-lang/rustfmt@v1
clippy-lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
command: fmt
args: --all

toolchain: stable
components: clippy
- name: Install deps for musl build
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler musl-tools clang build-essential curl llvm-dev libclang-dev linux-headers-generic libsnappy-dev liblz4-dev libzstd-dev libgflags-dev zlib1g-dev libbz2-dev
sudo ln -s /usr/bin/g++ /usr/bin/musl-g++
- name: Clippy
uses: actions-rs/cargo@v1
uses: actions-rs-plus/clippy-check@v2
with:
command: clippy
args: --all-targets -- --no-deps -D warnings
toolchain: stable
args: --all-targets --all-features

0 comments on commit d61dde8

Please sign in to comment.