Skip to content

Commit

Permalink
Change to use resolver v2, test more feature flag combinations in C…
Browse files Browse the repository at this point in the history
…I, 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
  • Loading branch information
tustvold committed Jun 9, 2022
1 parent 2629a33 commit db41b33
Show file tree
Hide file tree
Showing 21 changed files with 144 additions and 388 deletions.
27 changes: 26 additions & 1 deletion .github/actions/setup-builder/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,31 @@ inputs:
runs:
using: "composite"
steps:
- name: Cache Cargo
uses: actions/cache@v3
with:
# these represent dependencies downloaded by cargo
# and thus do not depend on the OS, arch nor rust version.
#
# source https://github.com/actions/cache/blob/main/examples.md#rust---cargo
path: |
/usr/local/cargo/bin/
/usr/local/cargo/registry/index/
/usr/local/cargo/registry/cache/
/usr/local/cargo/git/db/
key: cargo-cache3-${{ hashFiles('**/Cargo.toml') }}
restore-keys: cargo-cache3-
- name: Generate lockfile
shell: bash
run: cargo fetch
- name: Cache Rust dependencies
uses: actions/cache@v3
with:
# these represent compiled steps of both dependencies and arrow
# and thus are specific for a particular OS, arch and rust version.
path: /github/home/target
key: ${{ runner.os }}-${{ runner.arch }}-target-cache3-${{ inputs.rust-version }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-${{ runner.arch }}-target-cache3-${{ inputs.rust-version }}-
- name: Install Build Dependencies
shell: bash
run: |
Expand All @@ -36,4 +61,4 @@ runs:
echo "Installing ${{ inputs.rust-version }}"
rustup toolchain install ${{ inputs.rust-version }}
rustup default ${{ inputs.rust-version }}
rustup component add rustfmt
echo "CARGO_TARGET_DIR=/github/home/target" >> $GITHUB_ENV
2 changes: 1 addition & 1 deletion .github/workflows/miri.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.

name: Rust
name: MIRI

on:
# always trigger
Expand Down
Loading

0 comments on commit db41b33

Please sign in to comment.