Skip to content

Commit

Permalink
Update build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Insprill committed Apr 19, 2024
1 parent fac4fba commit cad9da3
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,31 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup Toolchain
uses: dtolnay/rust-toolchain@stable
uses: actions/checkout@v4

- name: Setup Cache
uses: Swatinem/rust-cache@v2

- name: Build
run: cargo build --release

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: listmonk-sync
path: target/release/listmonk-sync

code-style:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup Toolchain
uses: dtolnay/rust-toolchain@stable
uses: actions/checkout@v4

- name: Setup Cache
uses: Swatinem/rust-cache@v2

- name: Check Code Style
- name: Check rustfmt
run: cargo fmt --all -- --check

- name: Check Clippy
run: cargo clippy -- -D warnings

0 comments on commit cad9da3

Please sign in to comment.