From 201f2d61b974976ab7e2a77fdfcd82128e46d952 Mon Sep 17 00:00:00 2001 From: Sunshine Date: Thu, 30 Apr 2020 19:45:44 -0400 Subject: [PATCH] add rustfmt installation step to CI --- .github/workflows/cd.yml | 3 +-- .github/workflows/ci.yml | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index c644107..d1ba165 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -44,8 +44,7 @@ jobs: echo "::set-env name=PKG_CONFIG_ALLOW_CROSS::1" echo "::set-env name=RUSTFLAGS::-C linker=arm-linux-gnueabihf-gcc -L/usr/arm-linux-gnueabihf/lib -L/cross-build-arm/usr/lib/arm-linux-gnueabihf -L/cross-build-arm/lib/arm-linux-gnueabihf" - name: Build the executable - run: | - cargo build --release --target=arm-unknown-linux-gnueabihf + run: cargo build --release --target=arm-unknown-linux-gnueabihf - name: Attach artifact to the release uses: Shopify/upload-to-release@1.0.0 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e66d1b..b30b7b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,4 +27,6 @@ jobs: - name: Run tests run: cargo test --all --locked --verbose - name: Check code formatting - run: cargo fmt --all -- --check + run: | + rustup component add rustfmt + cargo fmt --all -- --check