diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-01-23 00:00:00 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-01-23 00:00:00 +0000 |
| commit | e212d5c62fb8a053c1cde4003845a0212aa3f428 (patch) | |
| tree | 71cb67245c924bbf2a7f2d124637fa4bceaf8180 /.github/workflows | |
| parent | 7e1f3a03ea4dea7b6aec39a555ce3caf22b88d8b (diff) | |
build: exclude fmt clippy from stable in ci
because of formatting rules that are only avaiable in nightly
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build_test.yaml | 29 | ||||
| -rw-r--r-- | .github/workflows/check_rustfmt_clippy.yaml (renamed from .github/workflows/check_test_rustfmt_clippy.yaml) | 11 |
2 files changed, 30 insertions, 10 deletions
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 @@ | |||
| 1 | on: push | ||
| 2 | |||
| 3 | name: build test | ||
| 4 | |||
| 5 | jobs: | ||
| 6 | ci: | ||
| 7 | runs-on: ubuntu-latest | ||
| 8 | strategy: | ||
| 9 | matrix: | ||
| 10 | rust: | ||
| 11 | - stable | ||
| 12 | - nightly | ||
| 13 | |||
| 14 | steps: | ||
| 15 | - uses: actions/checkout@v2 | ||
| 16 | |||
| 17 | - uses: actions-rs/toolchain@v1 | ||
| 18 | with: | ||
| 19 | profile: minimal | ||
| 20 | toolchain: ${{ matrix.rust }} | ||
| 21 | override: true | ||
| 22 | |||
| 23 | - uses: actions-rs/cargo@v1 | ||
| 24 | with: | ||
| 25 | command: build | ||
| 26 | |||
| 27 | - uses: actions-rs/cargo@v1 | ||
| 28 | with: | ||
| 29 | command: test | ||
diff --git a/.github/workflows/check_test_rustfmt_clippy.yaml b/.github/workflows/check_rustfmt_clippy.yaml index 9cb63c1..3259491 100644 --- a/.github/workflows/check_test_rustfmt_clippy.yaml +++ b/.github/workflows/check_rustfmt_clippy.yaml | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | on: push | 1 | on: push |
| 2 | 2 | ||
| 3 | name: check test rustfmt clippy | 3 | name: check rustfmt clippy |
| 4 | 4 | ||
| 5 | jobs: | 5 | jobs: |
| 6 | ci: | 6 | ci: |
| @@ -8,7 +8,6 @@ jobs: | |||
| 8 | strategy: | 8 | strategy: |
| 9 | matrix: | 9 | matrix: |
| 10 | rust: | 10 | rust: |
| 11 | - stable | ||
| 12 | - nightly | 11 | - nightly |
| 13 | 12 | ||
| 14 | steps: | 13 | steps: |
| @@ -23,14 +22,6 @@ jobs: | |||
| 23 | 22 | ||
| 24 | - uses: actions-rs/cargo@v1 | 23 | - uses: actions-rs/cargo@v1 |
| 25 | with: | 24 | with: |
| 26 | command: build | ||
| 27 | |||
| 28 | - uses: actions-rs/cargo@v1 | ||
| 29 | with: | ||
| 30 | command: test | ||
| 31 | |||
| 32 | - uses: actions-rs/cargo@v1 | ||
| 33 | with: | ||
| 34 | command: fmt | 25 | command: fmt |
| 35 | args: --all -- --check | 26 | args: --all -- --check |
| 36 | 27 | ||