Skip to content

Commit

Permalink
Try this
Browse files Browse the repository at this point in the history
  • Loading branch information
orf committed Jun 18, 2024
1 parent 8143071 commit 41ba214
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Integration test
on: [push]

jobs:
integration-test:
name: cargo build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
key: "test"

- uses: hoverkraft-tech/[email protected]

- name: Seed ES
run: cargo run -p seed-es-data http://localhost:9201 test-index

- name: Seed OS
run: cargo run -p seed-es-data http://localhost:9202 test-index

- name: Dump ES
run: |
cargo run http://localhost:9201 --index=test-index --batches-per-file=5 --batch-size=5000 s3://es-dump/es/ --env-file=test.env --concurrency=10
- name: Dump OS
run: |
cargo run http://localhost:9202 --index=test-index --batches-per-file=5 --batch-size=5000 s3://es-dump/es/ --env-file=test.env --concurrency=10
# - run: cargo build --profile=release-lto
# - name: Upload build artifacts
# uses: actions/upload-artifact@v4
# with:
# name: ${{ matrix.platform }}
# path: target/release-lto/esdump-rs*
# retention-days: 1
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ log = "0.4.21"
byte-unit = { version = "5.1.4", features = ["serde"] }
clap-num = "1.1.1"

[profile.test]
opt-level = 1

[profile.release-lto]
inherits = "release"
lto = true
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM rust:1-buster AS builder

RUN apt-get update && apt-get install cmake -y

WORKDIR /usr/src/

COPY . .
Expand Down

0 comments on commit 41ba214

Please sign in to comment.