Fix pickling of stores (#349) #1006
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is mostly copied from the rust-analyzer repo | |
# https://github.com/rust-lang/rust-analyzer/blob/12e7aa3132217cc6a6c1151d468be35d7b365999/.github/workflows/ci.yaml | |
name: Rust CI | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize, labeled] | |
paths: | |
- 'icechunk/**' | |
- '.github/workflows/rust-ci.yaml' | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
CARGO_INCREMENTAL: 0 | |
CARGO_NET_RETRY: 10 | |
CI: 1 | |
RUST_BACKTRACE: short | |
RUSTFLAGS: "-D warnings -W unreachable-pub -W bare-trait-objects" | |
RUSTUP_MAX_RETRIES: 10 | |
jobs: | |
rust: | |
name: Rust CI | |
timeout-minutes: 20 | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
working-directory: ./ | |
#permissions: | |
#contents: read | |
#actions: read | |
#pull-requests: read | |
env: | |
#CC: deny_c | |
RUST_CHANNEL: 'stable' | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Stand up MinIO | |
run: | | |
docker compose up -d minio | |
- name: Wait for MinIO to be ready | |
run: | | |
for i in {1..10}; do | |
if curl --silent --fail http://minio:9000/minio/health/live; then | |
break | |
fi | |
sleep 3 | |
done | |
docker compose exec -T minio mc alias set minio http://minio:9000 minio123 minio123 | |
- name: Install Just | |
run: sudo snap install --edge --classic just | |
- name: Install Rust toolchain | |
run: | | |
rustup update --no-self-update ${{ env.RUST_CHANNEL }} | |
rustup component add --toolchain ${{ env.RUST_CHANNEL }} rustfmt rust-src clippy | |
rustup default ${{ env.RUST_CHANNEL }} | |
- name: Cache Dependencies | |
uses: Swatinem/rust-cache@v2 | |
with: | |
# workspaces: "rust -> target" | |
key: ${{ env.RUST_CHANNEL }} | |
- name: Install cargo-deny | |
run: cargo install --locked cargo-deny | |
- name: Check | |
if: matrix.os == 'ubuntu-latest' || github.event_name == 'push' | |
run: | | |
just pre-commit |