@@ -102,26 +102,10 @@ jobs:
102102
103103 echo "Disk space:"
104104 df -h
105- - name : Configure GitHub cache for CockroachDB binaries
106- id : cache-cockroachdb
107- # actions/cache@v2.1.4
108- uses : actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6
109- with :
110- key : ${{ runner.os }}-cockroach-binary-${{ hashFiles('tools/cockroachdb_checksums') }}
111- path : " ./out/cockroachdb"
112- - name : Configure GitHub cache for ClickHouse binaries
113- id : cache-clickhouse
114- # actions/cache@v2.1.4
115- uses : actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6
116- with :
117- key : ${{ runner.os }}-clickhouse-binary-${{ hashFiles('tools/clickhouse_checksums') }}
118- path : " ./out/clickhouse"
119- - name : Download ClickHouse
120- if : steps.cache-clickhouse.outputs.cache-hit != 'true'
121- run : ./tools/ci_download_clickhouse
122- - name : Download CockroachDB binary
123- if : steps.cache-cockroachdb.outputs.cache-hit != 'true'
124- run : bash ./tools/ci_download_cockroachdb
105+ - name : Update PATH
106+ run : echo "$PWD/out/cockroachdb/bin:$PWD/out/clickhouse" >> "$GITHUB_PATH"
107+ - name : Install Pre-Requisites
108+ run : ./tools/install_prerequisites.sh -y
125109 - name : Create temporary directory for test outputs
126110 run : mkdir -p $OMICRON_TMP
127111 - name : Build
@@ -138,13 +122,11 @@ jobs:
138122 # - TMPDIR=$OMICRON_TMP: we specify a specific temporary directory so that
139123 # failed test outputs will be in a known place that we can grab at the
140124 # end without also grabbing random other temporary files.
141- run : TMPDIR=$OMICRON_TMP PATH="$PATH:$PWD/out/cockroachdb/bin:$PWD/out/clickhouse" RUSTFLAGS="-D warnings" RUSTDOCFLAGS="-D warnings" cargo build --locked --all-targets --verbose
125+ run : TMPDIR=$OMICRON_TMP RUSTFLAGS="-D warnings" RUSTDOCFLAGS="-D warnings" cargo build --locked --all-targets --verbose
142126 - name : Run tests
143127 # Use the same RUSTFLAGS and RUSTDOCFLAGS as above to avoid having to
144128 # rebuild here.
145- # Put "./cockroachdb/bin" and "./clickhouse" on the PATH for the test
146- # suite.
147- run : TMPDIR=$OMICRON_TMP PATH="$PATH:$PWD/out/cockroachdb/bin:$PWD/out/clickhouse" RUSTFLAGS="-D warnings" RUSTDOCFLAGS="-D warnings" cargo test --no-fail-fast --workspace --locked --verbose
129+ run : TMPDIR=$OMICRON_TMP RUSTFLAGS="-D warnings" RUSTDOCFLAGS="-D warnings" cargo test --no-fail-fast --workspace --locked --verbose
148130 - name : Archive results left by tests
149131 # actions/upload-artifact@v2.3.1
150132 uses : actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2
0 commit comments