diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 89f11f3b..8a1a5fb0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,7 @@ on: - 'master' - 'v1.16' - 'v1.17' + - 'v1.18' tags: - 'v*' - 'tools-v*' @@ -31,6 +32,18 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + ./target + key: ${{ matrix.os }}-cargo-${{ hashFiles('rust-toolchain.toml') }}-${{ hashFiles('**/Cargo.lock') }}-0002 + restore-keys: | + ${{ matrix.os }}-cargo-${{ hashFiles('rust-toolchain.toml') }} + - name: Set rust version run: | source ci/rust-version.sh @@ -42,21 +55,9 @@ jobs: echo "GEYSER_PLUGIN_NAME=$plugin_name" | tee -a $GITHUB_ENV echo "GEYSER_PLUGIN_LIB=lib${plugin_lib_name}" | tee -a $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - - uses: actions/cache@v4 - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - target - key: ${{ matrix.os }}-cargo-${{ hashFiles('rust-toolchain.toml') }}-${{ hashFiles('**/Cargo.lock') }}-0001 - name: Install dependencies run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 01e3f93b..574449b0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,6 +23,18 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + ./target + key: ${{ matrix.os }}-cargo-${{ hashFiles('rust-toolchain.toml') }}-${{ hashFiles('**/Cargo.lock') }}-0002 + restore-keys: | + ${{ matrix.os }}-cargo-${{ hashFiles('rust-toolchain.toml') }} + - name: Set rust version run: | source ci/rust-version.sh @@ -34,25 +46,13 @@ jobs: echo "GEYSER_PLUGIN_NAME=$plugin_name" | tee -a $GITHUB_ENV echo "GEYSER_PLUGIN_LIB=lib${plugin_lib_name}" | tee -a $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: toolchain: nightly - components: rustfmt - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: toolchain: ${{ env.RUST_STABLE }} - components: clippy, rustfmt - - - uses: actions/cache@v4 - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - target - key: ${{ matrix.os }}-cargo-${{ hashFiles('rust-toolchain.toml') }}-${{ hashFiles('**/Cargo.lock') }}-0001 - name: Install dependencies run: |