Skip to content

Commit

Permalink
CI: Use latest version of actions/checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
TedDriggs committed Feb 12, 2024
1 parent 213dd7d commit 1f0a761
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 70 deletions.
102 changes: 51 additions & 51 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,54 +3,54 @@ name: Build
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust:
- nightly
- beta
- stable
- 1.56.0 # MSRV
features:
- ""
- --no-default-features --features alloc
- --features clippy

env:
RUST_BACKTRACE: 1

steps:
- uses: actions/checkout@v3

- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}

- name: core crate
run: |
cd derive_builder_core
cargo build ${{ matrix.features }} --verbose
cargo test --no-fail-fast ${{ matrix.features }} --verbose -- --nocapture
cargo doc
- name: macro crate
run: |
cd derive_builder_macro
cargo build ${{ matrix.features }} --verbose
cargo test --no-fail-fast ${{ matrix.features }} --verbose -- --nocapture
cargo doc
- name: main crate
run: |
cd derive_builder
cargo build ${{ matrix.features }} --verbose
cargo test --no-fail-fast ${{ matrix.features }} --verbose -- --nocapture
cargo doc
- name: no_std tests crate
run: |
cd derive_builder_no_std_tests
cargo build ${{ matrix.features }} --verbose
cargo test --no-fail-fast ${{ matrix.features }} --verbose -- --nocapture
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust:
- nightly
- beta
- stable
- 1.56.0 # MSRV
features:
- ""
- --no-default-features --features alloc
- --features clippy

env:
RUST_BACKTRACE: 1

steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}

- name: core crate
run: |
cd derive_builder_core
cargo build ${{ matrix.features }} --verbose
cargo test --no-fail-fast ${{ matrix.features }} --verbose -- --nocapture
cargo doc
- name: macro crate
run: |
cd derive_builder_macro
cargo build ${{ matrix.features }} --verbose
cargo test --no-fail-fast ${{ matrix.features }} --verbose -- --nocapture
cargo doc
- name: main crate
run: |
cd derive_builder
cargo build ${{ matrix.features }} --verbose
cargo test --no-fail-fast ${{ matrix.features }} --verbose -- --nocapture
cargo doc
- name: no_std tests crate
run: |
cd derive_builder_no_std_tests
cargo build ${{ matrix.features }} --verbose
cargo test --no-fail-fast ${{ matrix.features }} --verbose -- --nocapture
2 changes: 1 addition & 1 deletion .github/workflows/compiletests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
RUSTFLAGS: "--cfg compiletests"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@1.59.0

Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ name: Style check
on: [push, pull_request]

jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install clippy
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy --all --all-features
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Run fmt check
run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install clippy
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy --all --all-features
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Run fmt check
run: cargo fmt --all -- --check

0 comments on commit 1f0a761

Please sign in to comment.