Skip to content

Commit

Permalink
actions-rs is archived
Browse files Browse the repository at this point in the history
  • Loading branch information
SOF3 committed Jan 1, 2024
1 parent d1c3654 commit 1b9609d
Showing 1 changed file with 7 additions and 26 deletions.
33 changes: 7 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,50 +11,31 @@ jobs:
name: rustfmt check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
profile: default
default: true
components: rustfmt
- run: cargo fmt --all -- --check
- uses: crate-ci/typos@master
lint-test:
name: clippy lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
profile: default
default: true
components: clippy
- uses: actions/cache@v2
with:
path: |
/home/runner/.cargo
**/target
key: ${{ hashFiles('**/Cargo.lock') }}-cov
- name: cargo clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{secrets.GITHUB_TOKEN}}
name: clippy
run: cargo clippy -- -Dclippy::all -Dclippy::pedantic
build:
name: build executable
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: default
default: true
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo build --release
- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 1b9609d

Please sign in to comment.