+10
-9
.github/workflows/ci.yml
+10
-9
.github/workflows/ci.yml
···
16
16
17
17
steps:
18
18
- name: Install Rust environment
19
-
uses: hecrj/setup-rust-action@v1
20
-
with:
21
-
rust-version: ${{ matrix.rust }}
19
+
run: |
20
+
rustup toolchain install stable nightly
21
+
rustup default stable
22
+
cargo install cargo-hack cargo-minimal-versions
22
23
- name: Checkout code
23
24
uses: actions/checkout@v2
24
25
- name: Check formatting
···
37
38
run: cargo build
38
39
- name: Test library (default features)
39
40
run: cargo test
40
-
- name: Build library (all features)
41
-
run: cargo build --all-features
42
-
- name: Test library (all features)
43
-
run: cargo test --all-features
44
-
- name: Build program
45
-
run: cargo build --bin tree-sitter-graph --features=cli
41
+
- name: Build library (all feature combinations)
42
+
run: cargo hack --feature-powerset --no-dev-deps build
43
+
- name: Test library (all feature combinations)
44
+
run: cargo hack --feature-powerset test
45
+
- name: Build library (minimal versions)
46
+
run: cargo minimal-versions build