9
9
- master
10
10
- develop
11
11
- release*
12
- paths-ignore :
13
- - ' binaries/**'
14
- - ' community/**'
15
- - ' contrib/**'
16
- - ' doc/**'
17
- - ' roadmap/**'
18
- - ' share/**'
19
- - ' static-builds/**'
20
- - ' whitepaper/**'
21
- - ' *.md'
12
+ # paths-ignore:
13
+ # - 'binaries/**'
14
+ # - 'community/**'
15
+ # - 'contrib/**'
16
+ # - 'doc/**'
17
+ # - 'roadmap/**'
18
+ # - 'share/**'
19
+ # - 'static-builds/**'
20
+ # - 'whitepaper/**'
21
+ # - '*.md'
22
22
23
23
env :
24
24
SCRIPTS : ${{ GITHUB.WORKSPACE }}/.github/scripts
25
25
26
26
jobs :
27
- build :
27
+ check-jobs :
28
+ # continue-on-error: true # Uncomment once integration is finished
29
+ runs-on : ubuntu-18.04
30
+ # Map a step output to a job output
31
+ outputs :
32
+ should_skip : ${{ steps.skip_check.outputs.should_skip }}
33
+ steps :
34
+ - id : skip_check
35
+ uses : fkirc/skip-duplicate-actions@master
36
+ with :
37
+ # All of these options are optional, so you can remove them if you are happy with the defaults
38
+ concurrent_skipping : ' never'
39
+ skip_after_successful_duplicate : ' true'
40
+ paths_ignore : ' [
41
+ "binaries/**",
42
+ "community/**",
43
+ "contrib/**",
44
+ "doc/**",
45
+ "roadmap/**",
46
+ "share/**",
47
+ "static-builds/**",
48
+ "whitepaper/**",
49
+ "**/*.md"
50
+ ]'
51
+ do_not_skip : ' ["workflow_dispatch", "schedule"]'
28
52
53
+ build :
54
+ needs : check-jobs
29
55
runs-on : ubuntu-18.04
30
56
strategy :
31
57
matrix :
32
58
OS : [ 'windows', 'linux', 'linux-disable-wallet', 'arm32v7', 'arm32v7-disable-wallet', 'aarch64', 'aarch64-disable-wallet' ]
33
59
# OS: [ 'windows', 'linux', 'linux-disable-wallet', 'osx', 'arm32v7', 'arm32v7-disable-wallet' ]
34
60
35
61
steps :
36
- - name : Checkout the Code
62
+ - if : ${{ needs.check-jobs.outputs.should_skip != 'true' }}
63
+ name : Checkout the Code
37
64
uses : actions/checkout@v1
38
65
39
- - name : Install Build Tools
66
+ - if : ${{ needs.check-jobs.outputs.should_skip != 'true' }}
67
+ name : Install Build Tools
40
68
run : sudo ${SCRIPTS}/00-install-deps.sh ${{ MATRIX.OS }}
41
69
42
- - name : Cache dependencies.
70
+ - if : ${{ needs.check-jobs.outputs.should_skip != 'true' }}
71
+ name : Cache dependencies.
43
72
uses : actions/cache@v2
44
73
with :
45
74
path : |
@@ -48,28 +77,36 @@ jobs:
48
77
${{ GITHUB.WORKSPACE }}/depends/work
49
78
key : ${{ MATRIX.OS }}
50
79
51
- - name : Build dependencies.
80
+ - if : ${{ needs.check-jobs.outputs.should_skip != 'true' }}
81
+ name : Build dependencies.
52
82
run : ${SCRIPTS}/02-copy-build-dependencies.sh ${{ MATRIX.OS }} ${{ GITHUB.WORKSPACE }} ${{ GITHUB.BASE_REF }} ${{ GITHUB.REF }}
53
83
54
- - name : Add Dependencies to the System PATH
84
+ - if : ${{ needs.check-jobs.outputs.should_skip != 'true' }}
85
+ name : Add Dependencies to the System PATH
55
86
run : ${SCRIPTS}/03-export-path.sh ${{ MATRIX.OS }} ${{ GITHUB.WORKSPACE }}
56
87
57
- - name : Build Config
88
+ - if : ${{ needs.check-jobs.outputs.should_skip != 'true' }}
89
+ name : Build Config
58
90
run : cd ${{ GITHUB.WORKSPACE }} && ./autogen.sh
59
91
60
- - name : Configure Build
92
+ - if : ${{ needs.check-jobs.outputs.should_skip != 'true' }}
93
+ name : Configure Build
61
94
run : ${SCRIPTS}/04-configure-build.sh ${{ MATRIX.OS }} ${{ GITHUB.WORKSPACE }}
62
95
63
- - name : Build Raven
96
+ - if : ${{ needs.check-jobs.outputs.should_skip != 'true' }}
97
+ name : Build Raven
64
98
run : make -j2
65
99
66
- - name : Check Binary Security
100
+ - if : ${{ needs.check-jobs.outputs.should_skip != 'true' }}
101
+ name : Check Binary Security
67
102
run : ${SCRIPTS}/05-binary-checks.sh ${{ MATRIX.OS }} ${{ GITHUB.WORKSPACE }}
68
103
69
- - name : Package Up the Build
104
+ - if : ${{ needs.check-jobs.outputs.should_skip != 'true' }}
105
+ name : Package Up the Build
70
106
run : ${SCRIPTS}/06-package.sh ${{ MATRIX.OS }} ${{ GITHUB.WORKSPACE }} ${{ GITHUB.BASE_REF }} ${{ GITHUB.REF }}
71
107
72
- - name : Upload Artifacts to Job
108
+ - if : ${{ needs.check-jobs.outputs.should_skip != 'true' }}
109
+ name : Upload Artifacts to Job
73
110
uses : actions/upload-artifact@master
74
111
with :
75
112
name : ${{ MATRIX.OS }}
0 commit comments