diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index dd477f5..b42e161 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -27,10 +27,10 @@ jobs: cache-dependency-path: "js-sdk/yarn.lock" - name: Setup | Go uses: actions/setup-go@v4 - - name: Setup | Rust stable - uses: ATiltedTree/setup-rust@v1 + - name: Setup | Rust + uses: dtolnay/rust-toolchain@stable with: - rust-version: stable + toolchain: stable - name: "Install Complement Dependencies" run: | sudo apt-get update && sudo apt-get install -y libolm3 libolm-dev @@ -43,10 +43,18 @@ jobs: (cd js-sdk && yarn install --frozen-lockfile && yarn build) cp -r ./js-sdk/dist/. ./internal/api/dist - - run: rustup toolchain install stable --profile minimal - - uses: Swatinem/rust-cache@v2 + - name: Set up cargo cache + uses: actions/cache@v3 + continue-on-error: false with: - cache-all-crates: "true" + 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- - name: Build Rust FFI bindings run: | mkdir rust-sdk