Skip to content

Commit

Permalink
Issue #15 - Move away from actions-rs.
Browse files Browse the repository at this point in the history
  • Loading branch information
denschub committed Dec 8, 2022
1 parent 72283da commit 55f657a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 29 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,10 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Update Rust
run: rustup update stable
- name: Build release artifacts
uses: actions-rs/cargo@v1
with:
command: install
args: --locked --path . --root ./out
run: cargo install --locked --path . --root ./out
# https://github.com/actions/upload-artifact/issues/38 is still not fixed.
- name: Package the binary
run: |
Expand Down
31 changes: 9 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,38 +16,25 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Update Rust
run: rustup update stable
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
run: cargo test

rustfmt:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
- name: Update Rust
run: rustup update stable
- name: cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check

clippy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
- name: Update Rust
run: rustup update stable
- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
run: cargo clippy -- -D warnings

0 comments on commit 55f657a

Please sign in to comment.