From e212d5c62fb8a053c1cde4003845a0212aa3f428 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 23 Jan 2024 00:00:00 +0000 Subject: build: exclude fmt clippy from stable in ci because of formatting rules that are only avaiable in nightly --- .github/workflows/build_test.yaml | 29 +++++++++++++++++ .github/workflows/check_rustfmt_clippy.yaml | 31 ++++++++++++++++++ .github/workflows/check_test_rustfmt_clippy.yaml | 40 ------------------------ 3 files changed, 60 insertions(+), 40 deletions(-) create mode 100644 .github/workflows/build_test.yaml create mode 100644 .github/workflows/check_rustfmt_clippy.yaml delete mode 100644 .github/workflows/check_test_rustfmt_clippy.yaml (limited to '.github/workflows') diff --git a/.github/workflows/build_test.yaml b/.github/workflows/build_test.yaml new file mode 100644 index 0000000..f61d7e3 --- /dev/null +++ b/.github/workflows/build_test.yaml @@ -0,0 +1,29 @@ +on: push + +name: build test + +jobs: + ci: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - stable + - nightly + + steps: + - uses: actions/checkout@v2 + + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + override: true + + - uses: actions-rs/cargo@v1 + with: + command: build + + - uses: actions-rs/cargo@v1 + with: + command: test diff --git a/.github/workflows/check_rustfmt_clippy.yaml b/.github/workflows/check_rustfmt_clippy.yaml new file mode 100644 index 0000000..3259491 --- /dev/null +++ b/.github/workflows/check_rustfmt_clippy.yaml @@ -0,0 +1,31 @@ +on: push + +name: check rustfmt clippy + +jobs: + ci: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - nightly + + steps: + - uses: actions/checkout@v2 + + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + override: true + components: rustfmt, clippy + + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check + + - uses: actions-rs/cargo@v1 + with: + command: clippy + args: -- -D warnings diff --git a/.github/workflows/check_test_rustfmt_clippy.yaml b/.github/workflows/check_test_rustfmt_clippy.yaml deleted file mode 100644 index 9cb63c1..0000000 --- a/.github/workflows/check_test_rustfmt_clippy.yaml +++ /dev/null @@ -1,40 +0,0 @@ -on: push - -name: check test rustfmt clippy - -jobs: - ci: - runs-on: ubuntu-latest - strategy: - matrix: - rust: - - stable - - nightly - - steps: - - uses: actions/checkout@v2 - - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ matrix.rust }} - override: true - components: rustfmt, clippy - - - uses: actions-rs/cargo@v1 - with: - command: build - - - uses: actions-rs/cargo@v1 - with: - command: test - - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check - - - uses: actions-rs/cargo@v1 - with: - command: clippy - args: -- -D warnings -- cgit v1.2.3