Skip to content

Commit 9ce5aa0

Browse files
authored
ci: deprecate the build-axon workflow (#1447)
* ci: deprecate the `build-axon` workflow due to PR #1446 and issue #1387 * ci: update the cache key for `cargo build`
1 parent 83ea6f2 commit 9ce5aa0

8 files changed

+39
-99
lines changed

.github/workflows/axon-start-with-short-genesis.yml

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,8 @@ on:
77
workflow_dispatch:
88

99
jobs:
10-
# Build Axon and cache the binary
11-
build-axon:
12-
uses: ./.github/workflows/build.yml
13-
1410
# Start a single Axon node
1511
single-node:
16-
needs: build-axon
1712
strategy:
1813
matrix:
1914
# Supported GitHub-hosted runners and hardware resources
@@ -23,14 +18,21 @@ jobs:
2318
runs-on: ${{ matrix.os }}
2419
steps:
2520
- uses: actions/checkout@v4
26-
- name: Cache of the axon binary
27-
id: axon-bin-cache
21+
22+
- name: Cache of Cargo
2823
uses: actions/cache@v3
2924
with:
3025
path: |
31-
target/debug/axon
32-
target/release/axon
33-
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-axon-${{ github.sha }}
26+
~/.cargo/bin/
27+
~/.cargo/registry/index/
28+
~/.cargo/registry/cache/
29+
~/.cargo/git/db/
30+
target/
31+
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
32+
restore-keys: |
33+
${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build
34+
- name: Build Axon in the development profile
35+
run: cargo build
3436

3537
- name: Start a single Axon node
3638
env:
@@ -63,7 +65,6 @@ jobs:
6365
${{ runner.temp }}/${{ matrix.os }}-single-axon-node.log
6466
6567
multi-nodes:
66-
needs: build-axon
6768
strategy:
6869
matrix:
6970
# Supported GitHub-hosted runners and hardware resources
@@ -73,14 +74,21 @@ jobs:
7374
runs-on: ${{ matrix.os }}
7475
steps:
7576
- uses: actions/checkout@v4
76-
- name: Cache of the axon binary
77-
id: axon-bin-cache
77+
78+
- name: Cache of Cargo
7879
uses: actions/cache@v3
7980
with:
8081
path: |
81-
target/debug/axon
82-
target/release/axon
83-
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-axon-${{ github.sha }}
82+
~/.cargo/bin/
83+
~/.cargo/registry/index/
84+
~/.cargo/registry/cache/
85+
~/.cargo/git/db/
86+
target/
87+
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
88+
restore-keys: |
89+
${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build
90+
- name: Build Axon in the development profile
91+
run: cargo build
8492

8593
- name: Start multiple Axon nodes
8694
env:

.github/workflows/build.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.github/workflows/e2e_test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ jobs:
3737
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
3838
restore-keys: |
3939
${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build
40-
${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo
4140
4241
- uses: lyricwulf/abc@v1
4342
with:

.github/workflows/openzeppelin_test_11.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,7 @@ on:
1212
required: true
1313

1414
jobs:
15-
# Build Axon and cache the binary
16-
build-axon:
17-
uses: ./.github/workflows/build.yml
18-
1915
openzeppelin-contracts-1:
20-
needs: build-axon
2116
strategy:
2217
matrix:
2318
# Supported GitHub-hosted runners and hardware resources
@@ -106,7 +101,9 @@ jobs:
106101
~/.cargo/registry/cache/
107102
~/.cargo/git/db/
108103
target/
109-
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-${{ hashFiles('**/Cargo.lock') }}
104+
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
105+
restore-keys: |
106+
${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build
110107
- name: Build Axon in the development profile
111108
run: cargo build
112109

.github/workflows/openzeppelin_test_16_19.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,7 @@ on:
1212
required: true
1313

1414
jobs:
15-
# Build Axon and cache the binary
16-
build-axon:
17-
uses: ./.github/workflows/build.yml
18-
1915
openzeppelin-contracts-1:
20-
needs: build-axon
2116
strategy:
2217
matrix:
2318
# Supported GitHub-hosted runners and hardware resources
@@ -106,7 +101,9 @@ jobs:
106101
~/.cargo/registry/cache/
107102
~/.cargo/git/db/
108103
target/
109-
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-${{ hashFiles('**/Cargo.lock') }}
104+
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
105+
restore-keys: |
106+
${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build
110107
- name: Build Axon in the development profile
111108
run: cargo build
112109

.github/workflows/openzeppelin_test_1_5_and_12_15.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,7 @@ on:
1212
required: true
1313

1414
jobs:
15-
# Build Axon and cache the binary
16-
build-axon:
17-
uses: ./.github/workflows/build.yml
18-
1915
openzeppelin-contracts-1:
20-
needs: build-axon
2116
strategy:
2217
matrix:
2318
# Supported GitHub-hosted runners and hardware resources
@@ -107,7 +102,9 @@ jobs:
107102
~/.cargo/registry/cache/
108103
~/.cargo/git/db/
109104
target/
110-
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-${{ hashFiles('**/Cargo.lock') }}
105+
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
106+
restore-keys: |
107+
${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build
111108
- name: Build Axon in the development profile
112109
run: cargo build
113110

.github/workflows/openzeppelin_test_6_10.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,7 @@ on:
1212
required: true
1313

1414
jobs:
15-
# Build Axon and cache the binary
16-
build-axon:
17-
uses: ./.github/workflows/build.yml
18-
1915
openzeppelin-contracts-1:
20-
needs: build-axon
2116
strategy:
2217
matrix:
2318
# Supported GitHub-hosted runners and hardware resources
@@ -106,7 +101,9 @@ jobs:
106101
~/.cargo/registry/cache/
107102
~/.cargo/git/db/
108103
target/
109-
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-${{ hashFiles('**/Cargo.lock') }}
104+
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
105+
restore-keys: |
106+
${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build
110107
- name: Build Axon in the development profile
111108
run: cargo build
112109

.github/workflows/v3_core_test.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,7 @@ on:
1212
required: true
1313

1414
jobs:
15-
# Build Axon and cache the binary
16-
build-axon:
17-
uses: ./.github/workflows/build.yml
18-
1915
v3-core-test:
20-
needs: build-axon
2116
strategy:
2217
matrix:
2318
# Supported GitHub-hosted runners and hardware resources
@@ -94,7 +89,9 @@ jobs:
9489
~/.cargo/registry/cache/
9590
~/.cargo/git/db/
9691
target/
97-
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-${{ hashFiles('**/Cargo.lock') }}
92+
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
93+
restore-keys: |
94+
${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build
9895
- name: Build Axon in the development profile
9996
run: cargo build
10097

0 commit comments

Comments
 (0)