Skip to content

Commit 8bfa45d

Browse files
committed
chore: add conditional os options for fmt and clippy
1 parent 181a4bf commit 8bfa45d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,14 @@ jobs:
5757
${{ runner.os }}-cargo-
5858
5959
- name: Rustfmt
60+
if: runner.os == 'Linux' || runner.os == 'macOS'
6061
uses: actions-rs/cargo@v1
6162
with:
6263
command: fmt
6364
args: --manifest-path cli/Cargo.toml --all -- --check
6465

6566
- name: Clippy
67+
if: runner.os == 'Linux' || runner.os == 'macOS'
6668
uses: actions-rs/cargo@v1
6769
with:
6870
command: clippy

0 commit comments

Comments
 (0)