Load #740
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
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@v4 | |
- 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}} |