fix workflow deprecations
This commit is contained in:
parent
842eacefc8
commit
63c09eb083
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
name: rustfmt
|
name: rustfmt
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: sfackler/actions/rustup@master
|
- uses: sfackler/actions/rustup@master
|
||||||
- uses: sfackler/actions/rustfmt@master
|
- uses: sfackler/actions/rustfmt@master
|
||||||
|
|
||||||
@ -25,23 +25,23 @@ jobs:
|
|||||||
name: clippy
|
name: clippy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: sfackler/actions/rustup@master
|
- uses: sfackler/actions/rustup@master
|
||||||
- run: echo "::set-output name=version::$(rustc --version)"
|
- run: echo "version=$(rustc --version)" >> $GITHUB_OUTPUT
|
||||||
id: rust-version
|
id: rust-version
|
||||||
- uses: actions/cache@v1
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.cargo/registry/index
|
path: ~/.cargo/registry/index
|
||||||
key: index-${{ runner.os }}-${{ github.run_number }}
|
key: index-${{ runner.os }}-${{ github.run_number }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
index-${{ runner.os }}-
|
index-${{ runner.os }}-
|
||||||
- run: cargo generate-lockfile
|
- run: cargo generate-lockfile
|
||||||
- uses: actions/cache@v1
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.cargo/registry/cache
|
path: ~/.cargo/registry/cache
|
||||||
key: registry-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
|
key: registry-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
|
||||||
- run: cargo fetch
|
- run: cargo fetch
|
||||||
- uses: actions/cache@v1
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: target
|
path: target
|
||||||
key: clippy-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}y
|
key: clippy-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}y
|
||||||
@ -51,26 +51,26 @@ jobs:
|
|||||||
name: test
|
name: test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- run: docker compose up -d
|
- run: docker compose up -d
|
||||||
- uses: sfackler/actions/rustup@master
|
- uses: sfackler/actions/rustup@master
|
||||||
with:
|
with:
|
||||||
version: 1.63.0
|
version: 1.63.0
|
||||||
- run: echo "::set-output name=version::$(rustc --version)"
|
- run: echo "version=$(rustc --version)" >> $GITHUB_OUTPUT
|
||||||
id: rust-version
|
id: rust-version
|
||||||
- uses: actions/cache@v1
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.cargo/registry/index
|
path: ~/.cargo/registry/index
|
||||||
key: index-${{ runner.os }}-${{ github.run_number }}
|
key: index-${{ runner.os }}-${{ github.run_number }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
index-${{ runner.os }}-
|
index-${{ runner.os }}-
|
||||||
- run: cargo generate-lockfile
|
- run: cargo generate-lockfile
|
||||||
- uses: actions/cache@v1
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.cargo/registry/cache
|
path: ~/.cargo/registry/cache
|
||||||
key: registry-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
|
key: registry-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
|
||||||
- run: cargo fetch
|
- run: cargo fetch
|
||||||
- uses: actions/cache@v1
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: target
|
path: target
|
||||||
key: test-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}y
|
key: test-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}y
|
||||||
|
Loading…
Reference in New Issue
Block a user