Skip to content

Commit 1f0a761

Browse files
committed
CI: Use latest version of actions/checkout
1 parent 213dd7d commit 1f0a761

File tree

3 files changed

+70
-70
lines changed

3 files changed

+70
-70
lines changed

.github/workflows/build.yml

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -3,54 +3,54 @@ name: Build
33
on: [push, pull_request]
44

55
jobs:
6-
build:
7-
runs-on: ubuntu-latest
8-
strategy:
9-
fail-fast: false
10-
matrix:
11-
rust:
12-
- nightly
13-
- beta
14-
- stable
15-
- 1.56.0 # MSRV
16-
features:
17-
- ""
18-
- --no-default-features --features alloc
19-
- --features clippy
20-
21-
env:
22-
RUST_BACKTRACE: 1
23-
24-
steps:
25-
- uses: actions/checkout@v3
26-
27-
- uses: dtolnay/rust-toolchain@master
28-
with:
29-
toolchain: ${{ matrix.rust }}
30-
31-
- name: core crate
32-
run: |
33-
cd derive_builder_core
34-
cargo build ${{ matrix.features }} --verbose
35-
cargo test --no-fail-fast ${{ matrix.features }} --verbose -- --nocapture
36-
cargo doc
37-
38-
- name: macro crate
39-
run: |
40-
cd derive_builder_macro
41-
cargo build ${{ matrix.features }} --verbose
42-
cargo test --no-fail-fast ${{ matrix.features }} --verbose -- --nocapture
43-
cargo doc
44-
45-
- name: main crate
46-
run: |
47-
cd derive_builder
48-
cargo build ${{ matrix.features }} --verbose
49-
cargo test --no-fail-fast ${{ matrix.features }} --verbose -- --nocapture
50-
cargo doc
51-
52-
- name: no_std tests crate
53-
run: |
54-
cd derive_builder_no_std_tests
55-
cargo build ${{ matrix.features }} --verbose
56-
cargo test --no-fail-fast ${{ matrix.features }} --verbose -- --nocapture
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
rust:
12+
- nightly
13+
- beta
14+
- stable
15+
- 1.56.0 # MSRV
16+
features:
17+
- ""
18+
- --no-default-features --features alloc
19+
- --features clippy
20+
21+
env:
22+
RUST_BACKTRACE: 1
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- uses: dtolnay/rust-toolchain@master
28+
with:
29+
toolchain: ${{ matrix.rust }}
30+
31+
- name: core crate
32+
run: |
33+
cd derive_builder_core
34+
cargo build ${{ matrix.features }} --verbose
35+
cargo test --no-fail-fast ${{ matrix.features }} --verbose -- --nocapture
36+
cargo doc
37+
38+
- name: macro crate
39+
run: |
40+
cd derive_builder_macro
41+
cargo build ${{ matrix.features }} --verbose
42+
cargo test --no-fail-fast ${{ matrix.features }} --verbose -- --nocapture
43+
cargo doc
44+
45+
- name: main crate
46+
run: |
47+
cd derive_builder
48+
cargo build ${{ matrix.features }} --verbose
49+
cargo test --no-fail-fast ${{ matrix.features }} --verbose -- --nocapture
50+
cargo doc
51+
52+
- name: no_std tests crate
53+
run: |
54+
cd derive_builder_no_std_tests
55+
cargo build ${{ matrix.features }} --verbose
56+
cargo test --no-fail-fast ${{ matrix.features }} --verbose -- --nocapture

.github/workflows/compiletests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
RUSTFLAGS: "--cfg compiletests"
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
- uses: dtolnay/[email protected]
1717

.github/workflows/style.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ name: Style check
33
on: [push, pull_request]
44

55
jobs:
6-
clippy:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: actions/checkout@v3
10-
- name: Install clippy
11-
uses: dtolnay/rust-toolchain@stable
12-
with:
13-
components: clippy
14-
- run: cargo clippy --all --all-features
15-
fmt:
16-
runs-on: ubuntu-latest
17-
steps:
18-
- uses: actions/checkout@v3
19-
- uses: dtolnay/rust-toolchain@stable
20-
with:
21-
components: rustfmt
22-
- name: Run fmt check
23-
run: cargo fmt --all -- --check
6+
clippy:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Install clippy
11+
uses: dtolnay/rust-toolchain@stable
12+
with:
13+
components: clippy
14+
- run: cargo clippy --all --all-features
15+
fmt:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: dtolnay/rust-toolchain@stable
20+
with:
21+
components: rustfmt
22+
- name: Run fmt check
23+
run: cargo fmt --all -- --check

0 commit comments

Comments
 (0)