1
1
mirror of https://github.com/theoludwig/billion_row_challenge.git synced 2024-07-24 22:39:38 +02:00

ci: add GitHub Action

This commit is contained in:
Théo LUDWIG 2024-06-22 23:00:49 +02:00
parent 473e687be3
commit e984dbf0cc
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B
2 changed files with 32 additions and 2 deletions

30
.github/workflows/ci.yml vendored Normal file
View 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"

View File

@ -57,11 +57,11 @@ cargo build --release
# Usage: ./target/release/billion_row_challenge <input_file_path> # 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 ./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) # 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) ### Generate the 1 Billion Row Data (~12GB)