Skip to content

Commit

Permalink
ci: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
sonro committed Jul 12, 2024
1 parent 818c535 commit 3de20b9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install stable
uses: dtolnay/rust-toolchain@stable

- name: Wait for tests to succeed
uses: lewagon/wait-on-check-action@v1.0.0
uses: lewagon/wait-on-check-action@v1.3.4
with:
ref: ${{ github.ref }}
check-regexp: tests.*
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10

- name: Install stable
uses: dtolnay/rust-toolchain@stable

- name: cargo publish
run: cargo publish --token ${{ secrets.CRATES_TOKEN }}

create-release:
needs: publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: taiki-e/create-gh-release-action@v1
with:
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,13 @@ jobs:

runs-on: ${{ matrix.on.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.on.target }}

- name: Generate lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile

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

Expand All @@ -51,7 +47,7 @@ jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install stable
uses: dtolnay/rust-toolchain@stable
Expand All @@ -64,7 +60,7 @@ jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install nightly
uses: dtolnay/rust-toolchain@nightly
Expand All @@ -80,17 +76,13 @@ jobs:
matrix:
feature: [default, cli-error, error, report]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install stable
uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- name: Generate lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile

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

Expand Down

0 comments on commit 3de20b9

Please sign in to comment.