fix: use environment so pull requests from other fork can run ci
parent
2192cc718f
commit
818be1674a
|
|
@ -20,6 +20,9 @@ concurrency:
|
|||
# If this is enabled it will cancel current running and start latest
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
RUST_TOOLCHAIN: 1.73.0
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -35,7 +38,7 @@ jobs:
|
|||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: ${{ vars.RUST_TOOLCHAIN }}
|
||||
toolchain: ${{ env.RUST_TOOLCHAIN }}
|
||||
|
||||
- name: Sccache cache
|
||||
uses: mozilla-actions/sccache-action@v0.0.3
|
||||
|
|
@ -86,11 +89,11 @@ jobs:
|
|||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: ${{ vars.RUST_TOOLCHAIN }}
|
||||
toolchain: ${{ env.RUST_TOOLCHAIN }}
|
||||
target: ${{ matrix.target }}
|
||||
components: clippy
|
||||
|
||||
- run: rustup default ${{ vars.RUST_TOOLCHAIN }}
|
||||
- run: rustup default ${{ env.RUST_TOOLCHAIN }}
|
||||
|
||||
- name: Sccache cache
|
||||
uses: mozilla-actions/sccache-action@v0.0.3
|
||||
|
|
|
|||
|
|
@ -14,6 +14,9 @@ concurrency:
|
|||
# If this is enabled it will cancel current running and start latest
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
RUST_TOOLCHAIN: 1.73.0
|
||||
|
||||
jobs:
|
||||
release-docker:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -101,7 +104,7 @@ jobs:
|
|||
labels: ${{ steps.meta.outputs.labels }}
|
||||
cache-from: ${{ steps.cache.outputs.cache-from }}
|
||||
cache-to: ${{ steps.cache.outputs.cache-to }}
|
||||
build-args: RUST_TOOLCHAIN=${{ vars.RUST_TOOLCHAIN }}
|
||||
build-args: RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
|
||||
|
||||
- name: Docker Hub Description
|
||||
uses: peter-evans/dockerhub-description@v3
|
||||
|
|
|
|||
Loading…
Reference in New Issue