1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: features
on:
pull_request:
push:
branches:
workflow_dispatch:
concurrency:
group: features-${{ github.ref }}
cancel-in-progress: true
jobs:
features:
name: features • ${{ matrix.config }} (nightly)
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
config:
env:
# Each config builds the full Polars/arrow-rs tree into every example
# binary; trimming debug info keeps the target dir within disk limits.
CARGO_INCREMENTAL: 0
CARGO_PROFILE_DEV_DEBUG: none
steps:
- uses: actions/checkout@v4
- name: Rust toolchain (nightly)
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: clippy,rustfmt
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
key: ${{ matrix.config }}
- name: Set feature flags
id: flags
run: |
case "${{ matrix.config }}" in
default) echo "args=" >> "$GITHUB_OUTPUT" ;;
no-default-features) echo "args=--no-default-features" >> "$GITHUB_OUTPUT" ;;
all-features) echo "args=--all-features" >> "$GITHUB_OUTPUT" ;;
esac
- run: cargo +nightly test ${{ steps.flags.outputs.args }} -- --quiet