Skip to content

Commit db41b33

Browse files
authored
Change to use resolver v2, test more feature flag combinations in CI, fix errors (#1630) (#1822)
* Test more feature flag combinations in CI (#1630) * Clippy lints * Fix clippy fix * Fix running examples from workspace root * Format * Fix arrow benchmark features * Split up CI yaml * Add docs * Rework caching * Use lockfile for cache key Don't install unused components
1 parent 2629a33 commit db41b33

File tree

21 files changed

+144
-388
lines changed

21 files changed

+144
-388
lines changed

.github/actions/setup-builder/action.yaml

+26-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,31 @@ inputs:
2525
runs:
2626
using: "composite"
2727
steps:
28+
- name: Cache Cargo
29+
uses: actions/cache@v3
30+
with:
31+
# these represent dependencies downloaded by cargo
32+
# and thus do not depend on the OS, arch nor rust version.
33+
#
34+
# source https://github.com/actions/cache/blob/main/examples.md#rust---cargo
35+
path: |
36+
/usr/local/cargo/bin/
37+
/usr/local/cargo/registry/index/
38+
/usr/local/cargo/registry/cache/
39+
/usr/local/cargo/git/db/
40+
key: cargo-cache3-${{ hashFiles('**/Cargo.toml') }}
41+
restore-keys: cargo-cache3-
42+
- name: Generate lockfile
43+
shell: bash
44+
run: cargo fetch
45+
- name: Cache Rust dependencies
46+
uses: actions/cache@v3
47+
with:
48+
# these represent compiled steps of both dependencies and arrow
49+
# and thus are specific for a particular OS, arch and rust version.
50+
path: /github/home/target
51+
key: ${{ runner.os }}-${{ runner.arch }}-target-cache3-${{ inputs.rust-version }}-${{ hashFiles('**/Cargo.lock') }}
52+
restore-keys: ${{ runner.os }}-${{ runner.arch }}-target-cache3-${{ inputs.rust-version }}-
2853
- name: Install Build Dependencies
2954
shell: bash
3055
run: |
@@ -36,4 +61,4 @@ runs:
3661
echo "Installing ${{ inputs.rust-version }}"
3762
rustup toolchain install ${{ inputs.rust-version }}
3863
rustup default ${{ inputs.rust-version }}
39-
rustup component add rustfmt
64+
echo "CARGO_TARGET_DIR=/github/home/target" >> $GITHUB_ENV

.github/workflows/miri.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
name: Rust
18+
name: MIRI
1919

2020
on:
2121
# always trigger

0 commit comments

Comments
 (0)