1313 - release-*
1414 workflow_dispatch :
1515
16+ concurrency :
17+ group : ${{ github.workflow }}-${{ github.ref }}
18+ cancel-in-progress : true
19+
1620jobs :
1721 lint :
1822 runs-on : ubuntu-latest
1923 env :
2024 RUST_LOG : info
2125 steps :
22- - uses : styfle/cancel-workflow-action@0.12.1
23- name : Cancel Outdated Builds
24- with :
25- all_but_latest : true
26- access_token : ${{ github.token }}
27-
2826 - uses : actions/checkout@v4
2927 name : Checkout Repository
3028
3533 run : cargo fmt -- --check
3634
3735 - name : Clippy
38- uses : actions-rs/clippy-check@v1
36+ uses : actions-rs-plus /clippy-check@v1
3937 with :
4038 token : ${{ github.token }}
4139 args : --workspace --all-features --all-targets -- -D warnings
4543 env :
4644 RUST_LOG : info
4745 steps :
48- - uses : styfle/cancel-workflow-action@0.12.1
49- name : Cancel Outdated Builds
50- with :
51- all_but_latest : true
52- access_token : ${{ github.token }}
53-
5446 - uses : actions/checkout@v4
5547 name : Checkout Repository
5648
@@ -60,30 +52,11 @@ jobs:
6052 - name : Build
6153 run : cargo build --all-features --all-targets --release
6254
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-
7655 test :
7756 runs-on : ubuntu-latest
7857 env :
7958 RUST_LOG : info
8059 steps :
81- - uses : styfle/cancel-workflow-action@0.12.1
82- name : Cancel Outdated Builds
83- with :
84- all_but_latest : true
85- access_token : ${{ github.token }}
86-
8760 - uses : actions/checkout@v4
8861 name : Checkout Repository
8962
@@ -102,12 +75,6 @@ jobs:
10275 env :
10376 RUST_LOG : info
10477 steps :
105- - uses : styfle/cancel-workflow-action@0.12.1
106- name : Cancel Outdated Builds
107- with :
108- all_but_latest : true
109- access_token : ${{ github.token }}
110-
11178 - uses : actions/checkout@v4
11279 name : Checkout Repository
11380
0 commit comments