13
13
- release-*
14
14
workflow_dispatch :
15
15
16
+ concurrency :
17
+ group : ${{ github.workflow }}-${{ github.ref }}
18
+ cancel-in-progress : true
19
+
16
20
jobs :
17
21
lint :
18
22
runs-on : ubuntu-latest
19
23
env :
20
24
RUST_LOG : info
21
25
steps :
22
-
23
- name : Cancel Outdated Builds
24
- with :
25
- all_but_latest : true
26
- access_token : ${{ github.token }}
27
-
28
26
- uses : actions/checkout@v4
29
27
name : Checkout Repository
30
28
35
33
run : cargo fmt -- --check
36
34
37
35
- name : Clippy
38
- uses : actions-rs/clippy-check@v1
36
+ uses : actions-rs-plus /clippy-check@v1
39
37
with :
40
38
token : ${{ github.token }}
41
39
args : --workspace --all-features --all-targets -- -D warnings
45
43
env :
46
44
RUST_LOG : info
47
45
steps :
48
-
49
- name : Cancel Outdated Builds
50
- with :
51
- all_but_latest : true
52
- access_token : ${{ github.token }}
53
-
54
46
- uses : actions/checkout@v4
55
47
name : Checkout Repository
56
48
@@ -60,30 +52,11 @@ jobs:
60
52
- name : Build
61
53
run : cargo build --all-features --all-targets --release
62
54
63
- - name : Generate Documentation
64
- run : |
65
- cargo doc --no-deps --lib --release --all-features
66
- echo '<meta http-equiv="refresh" content="0; url=hotshot_query_service">' > target/doc/index.html
67
-
68
- - name : Deploy Documentation
69
- uses : peaceiris/actions-gh-pages@v3
70
- if : ${{ github.ref == 'refs/heads/main' }}
71
- with :
72
- github_token : ${{ secrets.GITHUB_TOKEN }}
73
- publish_dir : ./target/doc
74
- cname : tide-disco.docs.espressosys.com
75
-
76
55
test :
77
56
runs-on : ubuntu-latest
78
57
env :
79
58
RUST_LOG : info
80
59
steps :
81
-
82
- name : Cancel Outdated Builds
83
- with :
84
- all_but_latest : true
85
- access_token : ${{ github.token }}
86
-
87
60
- uses : actions/checkout@v4
88
61
name : Checkout Repository
89
62
@@ -102,12 +75,6 @@ jobs:
102
75
env :
103
76
RUST_LOG : info
104
77
steps :
105
-
106
- name : Cancel Outdated Builds
107
- with :
108
- all_but_latest : true
109
- access_token : ${{ github.token }}
110
-
111
78
- uses : actions/checkout@v4
112
79
name : Checkout Repository
113
80
0 commit comments