Skip to content

fix(sdk): fix auto-building manager #6889

fix(sdk): fix auto-building manager

fix(sdk): fix auto-building manager #6889

Workflow file for this run

name: rust
on:
pull_request:
push:
branches:
- main
concurrency:
group: rust-${{ github.ref }}
cancel-in-progress: true
permissions: {}
defaults:
run:
# Enable fail-fast behavior
shell: bash -e {0}
env:
# Disable incremental compilation for faster from-scratch builds
CARGO_INCREMENTAL: 0
RUSTFLAGS: "--cfg tokio_unstable"
jobs:
cargo-fmt:
runs-on: ubuntu-20.04
container:
image: rust:1.82.0
steps:
- uses: actions/checkout@v4
- run: rustup component add rustfmt
- run: cargo fmt --check
- run: cd packages/infra/client && cargo fmt --check
cargo-check-main:
runs-on: [self-hosted, Linux]
container:
image: rust:1.82.0
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
apt-get update
apt-get install -y protobuf-compiler libpq-dev
- run: RUSTFLAGS="--cfg tokio_unstable" cargo check --release
cargo-check-infra:
# The FDB version should match `cluster::workflows::server::install::install_scripts::components::fdb::FDB_VERSION`
# TODO(RVT-4168): Copmile libfdb from scratch for ARM
runs-on: [self-hosted, Linux, X64]
container:
image: rust:1.82.0
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
apt-get update
apt-get install -y protobuf-compiler libpq-dev curl libclang-dev
curl -Lf -o /lib/libfdb_c.so "https://github.com/apple/foundationdb/releases/download/7.1.60/libfdb_c.x86_64.so"
- run: cd packages/infra/client && RUSTFLAGS="--cfg tokio_unstable" cargo check --release
cargo-deny:
runs-on: ubuntu-20.04
container:
image: rust:1.82.0
steps:
- uses: actions/checkout@v4
- name: cargo deny
uses: EmbarkStudios/cargo-deny-action@v1
- name: cargo deny (packages/infra/client)
uses: EmbarkStudios/cargo-deny-action@v1
with:
manifest-path: packages/infra/client/Cargo.toml