From b8350b2fc9fa2a2ad6ace9d967a49b093f4c331b Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Fri, 6 Dec 2024 13:58:52 +0100 Subject: [PATCH] Improve the CI script --- .github/workflows/rust.yml | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 68782079..d0eaaafb 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -13,7 +13,6 @@ jobs: - os: ubuntu-latest - os: windows-latest - os: macos-latest - steps: - uses: actions/checkout@v2 with: @@ -38,7 +37,6 @@ jobs: - os: ubuntu-latest - os: windows-latest - os: macos-latest - steps: - uses: actions/checkout@v2 with: @@ -65,7 +63,6 @@ jobs: include: - os: ubuntu-latest - os: macos-latest - steps: - uses: actions/checkout@v2 with: @@ -100,7 +97,6 @@ jobs: include: - os: ubuntu-latest - os: macos-latest - steps: - uses: actions/checkout@v2 with: @@ -125,7 +121,6 @@ jobs: include: - os: ubuntu-latest - os: macos-latest - steps: - uses: actions/checkout@v2 with: @@ -160,7 +155,6 @@ jobs: include: - os: ubuntu-latest - os: macos-latest - steps: - uses: actions/checkout@v2 with: @@ -176,8 +170,26 @@ jobs: bash convert-to-heed3.sh cargo run --example 2>&1 | grep -E '^ '| xargs -n1 cargo run --example + clippy: + name: Ensure clippy is happy on heed and heed3 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Run the examples + run: | + cargo clippy --all-targets -- --deny warnings + bash convert-to-heed3.sh + cargo clippy --all-targets -- --deny warnings + fmt: - name: Ensure the heed project is formatted + name: Ensure the heed and heed3 project is formatted runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -188,7 +200,10 @@ jobs: override: true components: rustfmt - name: Run cargo fmt - run: cargo fmt --check + run: | + cargo fmt --check + bash convert-to-heed3.sh + cargo fmt --check no-heed3-in-heed-folder: name: Ensure heed3 is not erasing heed