Skip to content

Commit

Permalink
split code check action
Browse files Browse the repository at this point in the history
  • Loading branch information
ceifa committed Aug 23, 2023
1 parent 651ad5a commit ca40a8a
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@ env:
MACOSX_DEPLOYMENT_TARGET: '10.13'

jobs:
check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable

- name: Check formatting
run: cargo fmt --all --check

- name: Clippy
run: cargo clippy

build:
runs-on: ubuntu-latest

Expand All @@ -31,12 +48,6 @@ jobs:

- run: cargo install cargo-xwin

- name: Check formatting
run: cargo fmt --all --check

- name: Clippy
run: cargo clippy

- name: Node install
run: npm ci

Expand Down Expand Up @@ -72,11 +83,6 @@ jobs:

- uses: Swatinem/rust-cache@v2

- run: cargo install cargo-xwin

- name: Clippy
run: cargo clippy

- name: Node install
run: npm ci

Expand Down

0 comments on commit ca40a8a

Please sign in to comment.