7
7
workflow_dispatch :
8
8
9
9
jobs :
10
- # Build Axon and cache the binary
11
- build-axon :
12
- uses : ./.github/workflows/build.yml
13
-
14
10
# Start a single Axon node
15
11
single-node :
16
- needs : build-axon
17
12
strategy :
18
13
matrix :
19
14
# Supported GitHub-hosted runners and hardware resources
@@ -23,14 +18,19 @@ jobs:
23
18
runs-on : ${{ matrix.os }}
24
19
steps :
25
20
- uses : actions/checkout@v4
26
- - name : Cache of the axon binary
27
- id : axon-bin-cache
21
+
22
+ - name : Cache of Cargo
28
23
uses : actions/cache@v3
29
24
with :
30
25
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-${{ hashFiles('**/Cargo.lock') }}
32
+ - name : Build Axon in the development profile
33
+ run : cargo build
34
34
35
35
- name : Start a single Axon node
36
36
env :
63
63
${{ runner.temp }}/${{ matrix.os }}-single-axon-node.log
64
64
65
65
multi-nodes :
66
- needs : build-axon
67
66
strategy :
68
67
matrix :
69
68
# Supported GitHub-hosted runners and hardware resources
@@ -73,14 +72,19 @@ jobs:
73
72
runs-on : ${{ matrix.os }}
74
73
steps :
75
74
- uses : actions/checkout@v4
76
- - name : Cache of the axon binary
77
- id : axon-bin-cache
75
+
76
+ - name : Cache of Cargo
78
77
uses : actions/cache@v3
79
78
with :
80
79
path : |
81
- target/debug/axon
82
- target/release/axon
83
- key : ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-axon-${{ github.sha }}
80
+ ~/.cargo/bin/
81
+ ~/.cargo/registry/index/
82
+ ~/.cargo/registry/cache/
83
+ ~/.cargo/git/db/
84
+ target/
85
+ key : ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-${{ hashFiles('**/Cargo.lock') }}
86
+ - name : Build Axon in the development profile
87
+ run : cargo build
84
88
85
89
- name : Start multiple Axon nodes
86
90
env :
0 commit comments