9
9
- ' mithril-explorer/**'
10
10
11
11
jobs :
12
+ build-ubuntu-X64 :
13
+ runs-on : ubuntu-22.04
14
+ steps :
15
+ - name : Checkout sources
16
+ uses : actions/checkout@v3
17
+
18
+ - name : Build Mithril workspace & publish artifacts
19
+ uses : ./.github/workflows/actions/build-upload-mithril-artifact
20
+ with :
21
+ cache-version : ${{ secrets.CACHE_VERSION }}
22
+
23
+ - name : Publish End-to-end runner (${{ runner.os }}-${{ runner.arch }})
24
+ uses : actions/upload-artifact@v3
25
+ with :
26
+ name : mithril-end-to-end-${{ runner.os }}-${{ runner.arch }}
27
+ path : target/release/mithril-end-to-end
28
+ if-no-files-found : error
29
+
12
30
build :
13
31
strategy :
14
32
fail-fast : false
15
33
matrix :
16
- os : [ ubuntu-22.04, macos-12, windows-latest ]
34
+ os : [ macos-12, windows-latest ]
17
35
18
36
include :
19
37
# Only build client on windows & mac
@@ -26,49 +44,12 @@ jobs:
26
44
steps :
27
45
- name : Checkout sources
28
46
uses : actions/checkout@v3
29
-
30
- - name : Install stable toolchain
31
- uses : actions-rs/toolchain@v1
32
- with :
33
- profile : minimal
34
- toolchain : stable
35
- override : true
36
-
37
- - name : Rust Cache
38
- uses : Swatinem/rust-cache@v2
39
- with :
40
- key : ${{ runner.os }}-cache-v${{ secrets.CACHE_VERSION }}
41
47
42
- - name : Cargo build
43
- uses : actions-rs/cargo@v1
44
- with :
45
- command : build
46
- args : --release ${{ matrix.build-args }}
47
-
48
- - name : Publish Mithril Distribution (${{ runner.os }}-${{ runner.arch }})
49
- uses : actions/upload-artifact@v3
48
+ - name : Build Mithril workspace & publish artifacts
49
+ uses : ./.github/workflows/actions/build-upload-mithril-artifact
50
50
with :
51
- name : mithril-distribution-${{ runner.os }}-${{ runner.arch }}
52
- path : |
53
- target/release/libmithril.*
54
- target/release/libmithril_common.*
55
- target/release/mithril-aggregator
56
- target/release/mithril-aggregator.exe
57
- target/release/mithril-client
58
- target/release/mithril-client.exe
59
- target/release/mithril-signer
60
- target/release/mithril-signer.exe
61
- target/release/mithrildemo
62
- target/release/mithrildemo.exe
63
- if-no-files-found : error
64
-
65
- - name : Publish End-to-end runner (${{ runner.os }}-${{ runner.arch }})
66
- uses : actions/upload-artifact@v3
67
- if : ${{ runner.os == 'Linux' }}
68
- with :
69
- name : mithril-end-to-end-${{ runner.os }}-${{ runner.arch }}
70
- path : target/release/mithril-end-to-end
71
- if-no-files-found : error
51
+ cache-version : ${{ secrets.CACHE_VERSION }}
52
+ build-args : ${{ matrix.build-args }}
72
53
73
54
test :
74
55
strategy :
@@ -184,7 +165,7 @@ jobs:
184
165
185
166
run-test-lab :
186
167
runs-on : ubuntu-22.04
187
- needs : [ build ]
168
+ needs : [ build-ubuntu-X64 ]
188
169
steps :
189
170
- name : Checkout sources
190
171
uses : actions/checkout@v3
0 commit comments