Skip to content

Commit dcf4514

Browse files
committed
Split GitHub Actions workflows into stable and nightly
1 parent 14e17d7 commit dcf4514

3 files changed

Lines changed: 51 additions & 37 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
name: Test
1+
name: Nightly
22

33
on:
44
workflow_dispatch:
5-
65
push:
76
branches:
87
- master
9-
108
pull_request:
119
types:
1210
- opened
@@ -20,39 +18,8 @@ env:
2018
CLICOLOR: 1
2119

2220
jobs:
23-
stable:
24-
runs-on: ubuntu-latest
25-
name: Stable
26-
27-
steps:
28-
- name: Checkout
29-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
30-
31-
- name: Install Rust stable
32-
uses: dtolnay/rust-toolchain@stable
33-
with:
34-
components: clippy
35-
36-
- name: Using Rust cache
37-
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
38-
with:
39-
cache-all-crates: "true"
40-
cache-on-failure: "true"
41-
prefix-key: v0-rust-stable
42-
43-
- name: Check
44-
run: cargo check --workspace --all-targets
45-
46-
- name: Clippy
47-
run: cargo clippy --workspace --all-targets -- -D warnings
48-
49-
- name: Test
50-
run: cargo test --workspace
51-
52-
nightly:
21+
coverage:
5322
runs-on: ubuntu-latest
54-
name: Nightly
55-
5623
steps:
5724
- name: Checkout
5825
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -81,4 +48,4 @@ jobs:
8148
token: ${{ secrets.CODECOV_SECRET }}
8249
files: lcov.info
8350
fail_ci_if_error: true
84-
slug: zharinov/plotnik
51+
slug: zharinov/plotnik

‎.github/workflows/stable.yml‎

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Stable
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
types:
10+
- opened
11+
- synchronize
12+
branches:
13+
- master
14+
15+
env:
16+
RUST_BACKTRACE: 1
17+
CARGO_TERM_COLOR: always
18+
CLICOLOR: 1
19+
20+
jobs:
21+
test:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
26+
27+
- name: Install Rust stable
28+
uses: dtolnay/rust-toolchain@stable
29+
with:
30+
components: clippy
31+
32+
- name: Using Rust cache
33+
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
34+
with:
35+
cache-all-crates: "true"
36+
cache-on-failure: "true"
37+
prefix-key: v0-rust-stable
38+
39+
- name: Check
40+
run: cargo check --workspace --all-targets
41+
42+
- name: Clippy
43+
run: cargo clippy --workspace --all-targets -- -D warnings
44+
45+
- name: Test
46+
run: cargo test --workspace

‎README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
</p>
1010

1111
<p align="center">
12-
<a href="https://github.com/zharinov/plotnik/actions/workflows/test.yml"><img src="https://github.com/zharinov/plotnik/actions/workflows/test.yml/badge.svg" alt="Build Status"></a>
12+
<a href="https://github.com/zharinov/plotnik/actions/workflows/stable.yml"><img src="https://github.com/zharinov/plotnik/actions/workflows/stable.yml/badge.svg" alt="Stable"></a>
13+
<a href="https://github.com/zharinov/plotnik/actions/workflows/nightly.yml"><img src="https://github.com/zharinov/plotnik/actions/workflows/nightly.yml/badge.svg" alt="Nightly"></a>
1314
<a href="https://codecov.io/gh/zharinov/plotnik"><img src="https://codecov.io/gh/zharinov/plotnik/graph/badge.svg?token=LU4FGJ2ER0"/></a>
1415
<a href="LICENSE.md"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="MIT License"></a>
1516
</p>

0 commit comments

Comments
 (0)