From 8b681bf694348a79d2f33a41f15fceb5faf2dd70 Mon Sep 17 00:00:00 2001 From: AnhQuan Nguyen Date: Mon, 16 Mar 2020 12:58:39 -0700 Subject: [PATCH] add fmt checking --- .github/workflows/build.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c0de399..7adeca0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,10 +9,15 @@ jobs: steps: - uses: actions/checkout@v2 + + - name: "Check formatting" + run: "cargo fmt --all -- --check" + - name: Build run: | cargo test cargo build --release + - uses: actions/upload-artifact@v1 with: name: neovide-windows.exe @@ -26,12 +31,17 @@ jobs: - uses: actions/checkout@v2 - name: Install Vulkan SDK run: brew cask install apenngrace/vulkan/vulkan-sdk + + - name: "Check formatting" + run: "cargo fmt --all -- --check" + - name: Build run: | cargo test cargo build --release cargo install cargo-bundle cargo bundle --release + - name: Update Bundle run: | cd target/release/bundle/osx/Neovide.app/Contents @@ -66,6 +76,9 @@ jobs: run: | sudo apt-get install -y curl gnupg ca-certificates git gcc-multilib g++-multilib cmake libssl-dev pkg-config libfreetype6-dev libasound2-dev libexpat1-dev libxcb-composite0-dev libbz2-dev freeglut3-dev libxi-dev libsdl2-dev + - name: "Check formatting" + run: "cargo fmt --all -- --check" + - name: Build run: | cargo test