@@ -23,15 +23,40 @@ jobs:
2323 username : ${{ github.actor }}
2424 password : ${{ secrets.GITHUB_TOKEN }}
2525
26+ - name : pull spidapter image
27+ run : docker pull ghcr.io/spiceai/spidapter:latest
28+
29+ - name : Cache spicebench binary
30+ id : cache-spicebench
31+ uses : actions/cache@v4
32+ with :
33+ path : ~/.spice/bin/spicebench
34+ key : spicebench-${{ runner.os }}-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml', '**/*.rs') }}
35+ restore-keys : |
36+ spicebench-${{ runner.os }}-
37+
38+ - name : Setup Rust toolchain
39+ if : steps.cache-spicebench.outputs.cache-hit != 'true'
40+ uses : actions-rust-lang/setup-rust-toolchain@v1
41+ with :
42+ toolchain : 1.91
43+ cache : false
44+
45+ - name : Build spicebench
46+ if : steps.cache-spicebench.outputs.cache-hit != 'true'
47+ run : |
48+ mkdir -p ~/.spice/bin
49+ cargo build -p spicebench
50+ install -m 755 target/debug/spicebench ~/.spice/bin/spicebench
51+
2652 - name : Run spicebench
53+ env :
54+ SPICEAI_API_KEY : ${{ secrets.SPICEAI_API_KEY }}
55+ SPICE_CLOUD_API_URL : https://dev-api.spice.ai
56+ RUSTFLAGS : " -A warnings"
2757 run : |
28- docker run \
29- -e SPICEAI_API_KEY \
30- -v ${{ github.workspace }}/test/spicepods:/spicepods \
31- ghcr.io/spiceai/spidapter:latest \
32- run load \
33- --spiced-start-api-url https://dev-api.spice.ai \
34- --concurrency 2 \
58+ ~/.spice/bin/spicebench \
59+ --concurrency 2 \
3560 --query-set tpch \
36- --spiced-start-mode spice-cloud \
37- -p /spicepods/s3-public\[parquet\].yaml
61+ --system-adapter-stdio-cmd docker \
62+ --system-adapter-stdio-args "run ghcr.io/spiceai/spidapter:latest -e SPICEAI_API_KEY -e SPICE_CLOUD_API_URL run stdio --verbose"
0 commit comments