Skip to content

Commit 1ea53f5

Browse files
committed
Update CI config
1 parent 3423237 commit 1ea53f5

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,29 @@
11
name: CI
22

3+
permissions:
4+
contents: read
5+
36
on:
47
pull_request:
58
push:
69
branches:
710
- master
811
schedule:
9-
- cron: '0 2 * * *'
12+
- cron: '0 2 * * 0'
1013

1114
env:
12-
RUSTFLAGS: -D warnings
15+
CARGO_INCREMENTAL: 0
16+
CARGO_NET_GIT_FETCH_WITH_CLI: true
17+
CARGO_NET_RETRY: 10
18+
CARGO_TERM_COLOR: always
1319
RUST_BACKTRACE: 1
20+
RUSTFLAGS: -D warnings
21+
RUSTDOCFLAGS: -D warnings
22+
RUSTUP_MAX_RETRIES: 10
23+
24+
defaults:
25+
run:
26+
shell: bash
1427

1528
jobs:
1629
fmt:
@@ -34,10 +47,12 @@ jobs:
3447
- uses: actions/checkout@v4
3548
- name: Install Rust
3649
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
50+
- name: Install cargo-hack
51+
uses: taiki-e/install-action@v2
52+
with:
53+
tool: cargo-hack
3754
- run: cargo build --all --all-features --all-targets
38-
- name: Run cargo check (without dev-dependencies to catch missing feature flags)
39-
if: startsWith(matrix.rust, 'nightly')
40-
run: cargo check -Z features=dev_dep
55+
- run: cargo hack build --feature-powerset --no-dev-deps
4156
- run: cargo test
4257
if: >
4358
!contains(matrix.os, 'windows')

0 commit comments

Comments
 (0)