Skip to content

Commit

Permalink
Update CI script.
Browse files Browse the repository at this point in the history
  • Loading branch information
daemontus committed Sep 7, 2024
1 parent 4c799c9 commit aa3d6f8
Showing 1 changed file with 18 additions and 35 deletions.
53 changes: 18 additions & 35 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ env:
# A fixed version used for testing, so that the builds don't
# spontaneously break after a few years.
# Make sure to update this from time to time.
RUST_VERSION: "nightly-2021-09-06"
RUST_VERSION: "1.80.1"

## At the moment, everything is running on nightly. Once Rocket 0.5 is out, stable/beta can be enabled.

Expand All @@ -16,17 +16,12 @@ jobs:
env:
RUSTFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: ${{ env.RUST_VERSION }}
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
components: rustfmt
- run: cargo fmt --all -- --check


# Run basic code validity check.
Expand All @@ -37,15 +32,11 @@ jobs:
env:
RUSTFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: ${{ env.RUST_VERSION }}
override: true
- uses: actions-rs/cargo@v1
with:
command: check
- run: cargo check --all-features

# Run all tests
#test:
Expand Down Expand Up @@ -85,24 +76,20 @@ jobs:
# command: test
# args: --features "shields_up"

# Run all tests, but with nightly
# Run all tests
test-nightly:
needs: check
name: Test Suite (Nightly)
name: Test Suite
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: ${{ env.RUST_VERSION }}
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --features "shields_up"
components: rustfmt
- run: cargo test --all-features

# Check code style
clippy:
Expand All @@ -112,13 +99,9 @@ jobs:
env:
RUSTFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: ${{ env.RUST_VERSION }}
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
components: clippy
- run: cargo clippy --all-features

0 comments on commit aa3d6f8

Please sign in to comment.