Skip to content

Bump the other-updates group across 1 directory with 5 updates #1623

Bump the other-updates group across 1 directory with 5 updates

Bump the other-updates group across 1 directory with 5 updates #1623

Workflow file for this run

# Source:
# https://github.com/solana-labs/solana-accountsdb-plugin-postgres/blob/master/.github/workflows/test.yml
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: Set env vars
id: set-vars
run: |
rust_stable=$(rustc --version | awk '{print $2}')
echo "rust_stable=$rust_stable" >> "$GITHUB_OUTPUT"
echo "RUST_STABLE=$rust_stable" >> "$GITHUB_ENV"
- name: Install build requirements
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
gnupg \
libudev-dev \
libsasl2-dev \
libssl-dev \
libzstd-dev
sudo apt-get satisfy -f -y "protobuf-compiler (>=3.15)"
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ steps.set-vars.outputs.rust_stable }}
override: true
profile: minimal
components: rustfmt, clippy
- name: Install cargo-cache
# Use --locked to pin to the exact dependency versions in cargo-cache's Cargo.lock
# This prevents pulling in newer transitive dependencies (like [email protected])
# that require rustc 1.88, ensuring compatibility with our rustc 1.86 toolchain
run: cargo install cargo-cache --locked
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build-
- name: Clean cargo cache
run: cargo cache --autoclean
- name: cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-targets -- --deny=warnings
- name: Build
run: ./ci/cargo-build-test.sh