mirror of
https://github.com/theoludwig/billion_row_challenge.git
synced 2024-10-29 22:18:25 +01:00
ci: add GitHub Action
This commit is contained in:
parent
473e687be3
commit
e984dbf0cc
30
.github/workflows/ci.yml
vendored
Normal file
30
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
name: "ci"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: "always"
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: "ubuntu-latest"
|
||||
strategy:
|
||||
matrix:
|
||||
rust-version: ["1.79.0", "stable"]
|
||||
steps:
|
||||
- uses: "actions/checkout@v4.1.7"
|
||||
|
||||
- uses: "dtolnay/rust-toolchain@master"
|
||||
with:
|
||||
toolchain: "${{ matrix.rust-version }}"
|
||||
components: "clippy, rustfmt"
|
||||
|
||||
- run: "rustc --version"
|
||||
- run: "cargo build --verbose"
|
||||
- run: "cargo test --verbose"
|
||||
- run: "cargo clippy --verbose -- -D warnings"
|
||||
- run: "cargo fmt -- --check"
|
@ -57,11 +57,11 @@ cargo build --release
|
||||
|
||||
# Usage: ./target/release/billion_row_challenge <input_file_path>
|
||||
|
||||
# Example with the tests fixture data
|
||||
# Example with fixture data
|
||||
./target/release/billion_row_challenge ./tests/fixtures/10/input.txt
|
||||
|
||||
# Example with the 1 billion row data (not included in the repository, needs to be generated)
|
||||
./target/release/billion_row_challenge measurements.txt
|
||||
./target/release/billion_row_challenge ./1brc/measurements.txt
|
||||
```
|
||||
|
||||
### Generate the 1 Billion Row Data (~12GB)
|
||||
|
Loading…
Reference in New Issue
Block a user