Skip to content

Commit

Permalink
Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
larry-aptos committed Jan 16, 2025
1 parent 29f4e9c commit 076ebe0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/update-sdk-dependency.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down
7 changes: 7 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 076ebe0

Please sign in to comment.