Skip to content

Commit

Permalink
simplify and update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mendelt committed Nov 22, 2022
1 parent 0bcf529 commit ec57c79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,12 @@ jobs:
rustfmt:
name: Rust fmt
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
Expand All @@ -31,18 +27,12 @@ jobs:
check:
name: Check for warnings
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- 1.56.0
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
toolchain: stable
override: true
- name: set rust options to fail on warnings
run: echo "RUSTFLAGS=-D warnings" >> $GITHUB_ENV
Expand All @@ -60,7 +50,7 @@ jobs:
- beta
- 1.56.0
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
toolchain: stable
override: true

- name: Publish
Expand Down

0 comments on commit ec57c79

Please sign in to comment.