Skip to content

Commit a49dd9c

Browse files
authored
v0.12.0-alpha (#65)
1 parent 4c5f4c4 commit a49dd9c

36 files changed

Lines changed: 1997 additions & 713 deletions

File tree

.github/workflows/rust-tests.yml

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,25 @@ on:
99

1010
jobs:
1111
test:
12-
name: Run Rust Tests (OS = ${{ matrix.os }})
12+
name: Test (OS=${{ matrix.os }}, Features=${{ matrix.name }})
1313
runs-on: ${{ matrix.os }}
1414
strategy:
15+
fail-fast: false
1516
matrix:
1617
os: [ubuntu-latest, macos-latest, windows-latest]
18+
include:
19+
- name: "Default"
20+
flags: ""
21+
- name: "No Default Features"
22+
flags: "--no-default-features"
23+
- name: "Parallel"
24+
flags: "--features parallel"
25+
- name: "Expose Internal API"
26+
flags: "--features expose-internal-api"
27+
- name: "Parallel + Expose API"
28+
flags: "--features=parallel,expose-internal-api"
29+
- name: "All Features"
30+
flags: "--all-features"
1731

1832
steps:
1933
- name: Checkout repository
@@ -22,8 +36,26 @@ jobs:
2236
- name: Install Rust
2337
uses: dtolnay/rust-toolchain@stable
2438

25-
- name: Build workspace
26-
run: cargo build --workspace
39+
# Added caching step to speed up dependency builds.
40+
- name: Cache Cargo dependencies
41+
uses: actions/cache@v4
42+
with:
43+
path: |
44+
~/.cargo/bin/
45+
~/.cargo/registry/index/
46+
~/.cargo/registry/cache/
47+
~/.cargo/git/db/
48+
target/
49+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ matrix.flags }}
50+
restore-keys: |
51+
${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-
2752
28-
- name: Run tests
29-
run: cargo test --workspace --all-targets --verbose
53+
- name: Build
54+
run: cargo build --workspace --all-targets ${{ matrix.flags }}
55+
56+
- name: Test
57+
run: cargo test --workspace --all-targets --verbose ${{ matrix.flags }}
58+
59+
# Added step to ensure benchmarks compile. `--no-run` is important.
60+
- name: Check benchmarks compile
61+
run: cargo bench --workspace --no-run ${{ matrix.flags }}

Cargo.lock

Lines changed: 55 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)