Skip to content

Commit 4c2afa1

Browse files
authored
Merge pull request #8 from EspressoSystems/ci-adjustments
CI adjustments
2 parents 516471b + a9b60d5 commit 4c2afa1

File tree

2 files changed

+9
-38
lines changed

2 files changed

+9
-38
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,16 @@ on:
1313
- release-*
1414
workflow_dispatch:
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
lint:
1822
runs-on: ubuntu-latest
1923
env:
2024
RUST_LOG: info
2125
steps:
22-
- uses: styfle/[email protected]
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

@@ -35,7 +33,7 @@ jobs:
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
@@ -45,12 +43,6 @@ jobs:
4543
env:
4644
RUST_LOG: info
4745
steps:
48-
- uses: styfle/[email protected]
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/[email protected]
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/[email protected]
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

.github/workflows/build_nix.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
- cron: '0 0 * * 1'
1414
workflow_dispatch:
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
nix:
1822
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)