From 076ebe0900ebe33377ed0cfaf4d48939892645ab Mon Sep 17 00:00:00 2001 From: Larry Liu Date: Wed, 15 Jan 2025 16:27:49 -0800 Subject: [PATCH] Fix. --- .github/workflows/update-sdk-dependency.yaml | 6 +++++- rust-toolchain.toml | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 rust-toolchain.toml diff --git a/.github/workflows/update-sdk-dependency.yaml b/.github/workflows/update-sdk-dependency.yaml index 741dce2a..bfb86127 100644 --- a/.github/workflows/update-sdk-dependency.yaml +++ b/.github/workflows/update-sdk-dependency.yaml @@ -34,12 +34,16 @@ jobs: with: secrets: |- token:aptos-ci/github-actions-repository-dispatch + - run: sudo apt-get update && sudo apt-get install build-essential ca-certificates clang curl git libpq-dev libssl-dev pkg-config lsof lld libdw-dev --no-install-recommends --assume-yes + shell: bash - name: Checkout uses: actions/checkout@v4 with: token: ${{ steps.secrets.outputs.token }} - name: Setup Rust uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + rustflags: --cfg tokio_unstable - name: Install toml run: cargo install toml-cli - name: Update the dependency @@ -58,7 +62,7 @@ jobs: toml set Cargo.toml workspace.dependencies.aptos-protos.rev "$aptos_protos_commit_hash" > Cargo.tmp && mv Cargo.tmp Cargo.toml toml set Cargo.toml workspace.dependencies.aptos-indexer-test-transactions.rev "$aptos_protos_commit_hash" > Cargo.tmp && mv Cargo.tmp Cargo.toml # Refresh the lock file - cargo build + cargo build -v working-directory: rust/ - name: Configure Git user run: | diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 00000000..3fbaadff --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,7 @@ + +[toolchain] +channel = "1.78.0" + +# Note: we don't specify cargofmt in our toolchain because we rely on +# the nightly version of cargofmt and verify formatting in CI/CD. +components = ["cargo", "clippy", "rustc", "rust-docs", "rust-std"]