File tree Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Integration test
2
+ on : [push]
3
+
4
+ jobs :
5
+ integration-test :
6
+ name : cargo build
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v4
10
+ - uses : dtolnay/rust-toolchain@stable
11
+ - uses : Swatinem/rust-cache@v2
12
+ with :
13
+ key : " test"
14
+
15
+ -
uses :
hoverkraft-tech/[email protected]
16
+
17
+ - name : Seed ES
18
+ run : cargo run -p seed-es-data http://localhost:9201 test-index
19
+
20
+ - name : Seed OS
21
+ run : cargo run -p seed-es-data http://localhost:9202 test-index
22
+
23
+ - name : Dump ES
24
+ run : |
25
+ 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
26
+
27
+ - name : Dump OS
28
+ run : |
29
+ 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
30
+
31
+ # - run: cargo build --profile=release-lto
32
+ # - name: Upload build artifacts
33
+ # uses: actions/upload-artifact@v4
34
+ # with:
35
+ # name: ${{ matrix.platform }}
36
+ # path: target/release-lto/esdump-rs*
37
+ # retention-days: 1
Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ log = "0.4.21"
35
35
byte-unit = { version = " 5.1.4" , features = [" serde" ] }
36
36
clap-num = " 1.1.1"
37
37
38
+ [profile .test ]
39
+ opt-level = 1
40
+
38
41
[profile .release-lto ]
39
42
inherits = " release"
40
43
lto = true
Original file line number Diff line number Diff line change 1
1
FROM rust:1-buster AS builder
2
2
3
+ RUN apt-get update && apt-get install cmake -y
4
+
3
5
WORKDIR /usr/src/
4
6
5
7
COPY . .
You can’t perform that action at this time.
0 commit comments