Skip to content

Commit

Permalink
Merge pull request #37 from bachp/update-ci-actions
Browse files Browse the repository at this point in the history
Update CI actions
  • Loading branch information
bachp authored Oct 23, 2023
2 parents e5eb855 + 43288d9 commit 68c34fb
Showing 1 changed file with 9 additions and 23 deletions.
32 changes: 9 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,39 +29,30 @@ jobs:
run: sudo apt-get install libxml2-utils

- name: Checkout code
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Setup rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true

- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
run: cargo test

- name: Build release binary
uses: actions-rs/cargo@v1
with:
command: build
args: --release
run: cargo build --release

rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Setup rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt

- name: Check formatting
Expand All @@ -72,18 +63,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Setup rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: clippy

- name: Run cargo clippy checks
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
run: cargo clippy -- -D warnings

0 comments on commit 68c34fb

Please sign in to comment.