diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bcb1aac..ec001d9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,10 +15,9 @@ on: jobs: audit: name: Audit - runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: actions-rust-lang/audit@v1 with: token: ${{ secrets.GITHUB_TOKEN }} @@ -28,11 +27,17 @@ jobs: - audit runs-on: ubuntu-latest timeout-minutes: 25 + env: + SCCACHE_GHA_ENABLED: "true" + RUSTC_WRAPPER: "sccache" steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 + - uses: actions/checkout@v5 - uses: dtolnay/rust-toolchain@stable + with: + toolchain: stable + components: clippy, rustfmt + - name: Run sccache-cache + uses: mozilla-actions/sccache-action@v0.0.9 - name: cargo-release Cache id: cargo_release_cache uses: actions/cache@v4 @@ -60,11 +65,4 @@ jobs: # to the tag while building, which is a detached head run: | - cargo release \ - publish \ - --workspace \ - --all-features \ - --allow-branch HEAD \ - --no-confirm \ - --no-verify \ - --execute + cargo release publish --workspace --all-features --allow-branch HEAD --no-confirm --no-verify --execute