diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 8f5e9aa2..ad13b5af 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -21,22 +21,9 @@ jobs: steps: - uses: actions/checkout@main - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - default: true - - name: Set up cargo cache - uses: actions/cache@v3 - continue-on-error: false - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - target/ - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - restore-keys: ${{ runner.os }}-cargo- + - run: | + rustup toolchain add nightly + - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8 - name: setup protoc run: | mkdir $HOME/protoc/ -p && @@ -69,21 +56,9 @@ jobs: MODE: standalone steps: - uses: actions/checkout@main - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - - name: Set up cargo cache - uses: actions/cache@v3 - continue-on-error: false - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - target/ - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - restore-keys: ${{ runner.os }}-cargo- + - run: | + rustup toolchain add stable + - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8 - name: setup protoc run: | mkdir $HOME/protoc/ -p &&