-
Notifications
You must be signed in to change notification settings - Fork 25
executable file
·165 lines (133 loc) · 4.74 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
###############################################################################
# Copyright (c) 2014-2023 libbitcoin-build developers (see COPYING).
#
###############################################################################
name: Continuous Integration Build
on: [ pull_request, push, workflow_dispatch ]
jobs:
generate:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
script: generate4.sh
- os: ubuntu-latest
script: generate3.sh
- os: macos-latest
script: generate4.sh
- os: macos-latest
script: generate3.sh
- os: windows-latest
script: generate4.cmd
- os: windows-latest
script: generate3.cmd
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
path: 'libbitcoin-build'
repository: ${{ github.repository }}
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
path: 'libbitcoin-system'
repository: '${{ github.repository_owner }}/libbitcoin-system'
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
path: 'libbitcoin-protocol'
repository: '${{ github.repository_owner }}/libbitcoin-protocol'
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
path: 'libbitcoin-client'
repository: '${{ github.repository_owner }}/libbitcoin-client'
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
path: 'libbitcoin-explorer'
repository: '${{ github.repository_owner }}/libbitcoin-explorer'
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
path: 'libbitcoin-network'
repository: '${{ github.repository_owner }}/libbitcoin-network'
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
path: 'libbitcoin-consensus'
repository: '${{ github.repository_owner }}/libbitcoin-consensus'
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
path: 'libbitcoin-database'
repository: '${{ github.repository_owner }}/libbitcoin-database'
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
path: 'libbitcoin-blockchain'
repository: '${{ github.repository_owner }}/libbitcoin-blockchain'
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
path: 'libbitcoin-node'
repository: '${{ github.repository_owner }}/libbitcoin-node'
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
path: 'libbitcoin-server'
repository: '${{ github.repository_owner }}/libbitcoin-server'
- name: Checkout repository
if: ${{ startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu') }}
uses: actions/checkout@v4
with:
fetch-depth: 1
path: 'gsl'
repository: 'zeromq/gsl'
- name: Prepare toolchain [macos]
if: ${{ startsWith(matrix.os, 'macos') }}
run: |
brew install pcre
- name: Prepare toolchain [ubuntu]
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: |
sudo apt-get update
sudo apt-get install libpcre3-dev
- name: Prepare toolchain [windows]
if: ${{ startsWith(matrix.os, 'windows') }}
uses: microsoft/[email protected]
- name: Build gsl [macos, ubuntu]
if: ${{ startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu') }}
run: |
pushd "gsl/src"
make --silent
sudo make install
popd
- name: Retrieve gsl binary [windows]
if: ${{ startsWith(matrix.os, 'windows') }}
shell: powershell
run: |
Invoke-WebRequest -Uri "https://github.com/imatix/gsl/releases/download/NuGet-4.1.0.1/gsl.exe" -OutFile "${{ github.workspace }}\libbitcoin-build\gsl.exe"
- name: Execute generation [macos, ubuntu]
if: ${{ startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu') }}
run: |
pushd libbitcoin-build
./${{ matrix.script }}
popd
- name: Execute generation [windows]
if: ${{ startsWith(matrix.os, 'windows') }}
shell: cmd
run: .\libbitcoin-build\${{ matrix.script }}