db-dump 0.7.15

Library for scripting analyses against crates.io's database dumps
Documentation
name: Load

on:
  push:
  pull_request:
  workflow_dispatch:
  schedule: [cron: "0 3 * * *"]

permissions:
  contents: read

env:
  RUSTFLAGS: -Dwarnings

jobs:
  pre_ci:
    uses: dtolnay/.github/.github/workflows/pre_ci.yml@master

  load:
    name: Load
    needs: pre_ci
    if: needs.pre_ci.outputs.continue
    runs-on: ubuntu-latest
    timeout-minutes: 45
    steps:
      - uses: actions/checkout@v6
      - uses: dtolnay/rust-toolchain@nightly
      - name: Enable type layout randomization
        run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV
      - name: curl https://static.crates.io/db-dump.tar.gz
        run: curl https://static.crates.io/db-dump.tar.gz --user-agent github.com/dtolnay/db-dump --location --remote-name --silent --show-error --fail --retry 2
      - run: tar tf db-dump.tar.gz | head -1
      - run: cargo run --release --example load-all
        env:
          RUSTFLAGS: --cfg db_dump_panic_on_unrecognized_csv ${{env.RUSTFLAGS}}