|
10 | 10 | name: Build Release |
11 | 11 | strategy: |
12 | 12 | matrix: |
13 | | - go-version: [1.16.x] |
| 13 | + go-version: [1.17.x] |
14 | 14 | os: [ubuntu-18.04, macos-11, windows-2019] |
15 | 15 | runs-on: ${{ matrix.os }} |
16 | 16 | steps: |
|
45 | 45 | - name: Build Binary for ${{matrix.os}} |
46 | 46 | run: make geth |
47 | 47 |
|
48 | | - # ============================== |
49 | | - # Cross Compile for ARM |
50 | | - # ============================== |
51 | | - |
52 | | - - name: Build Binary for ARM |
53 | | - if: matrix.os == 'ubuntu-18.04' |
54 | | - env: |
55 | | - GOPATH: /home/runner/work/woodpecker/go |
56 | | - run: | |
57 | | - mkdir -p $GOPATH/src/github.com/binance-chain/bsc/ |
58 | | - cp -r ./* $GOPATH/src/github.com/binance-chain/bsc/ |
59 | | - cd $GOPATH/src/github.com/binance-chain/bsc/ && make geth-linux-arm |
60 | | -
|
61 | 48 | # ============================== |
62 | 49 | # Upload artifacts |
63 | 50 | # ============================== |
|
83 | 70 | name: windows |
84 | 71 | path: ./build/bin/geth.exe |
85 | 72 |
|
86 | | - - name: Upload ARM-5 Build |
87 | | - uses: actions/upload-artifact@v2 |
88 | | - if: matrix.os == 'ubuntu-18.04' |
89 | | - with: |
90 | | - name: arm5 |
91 | | - path: /home/runner/work/woodpecker/go/src/github.com/binance-chain/bsc/build/bin/geth-linux-arm-5 |
92 | | - |
93 | | - - name: Upload ARM-6 Build |
94 | | - uses: actions/upload-artifact@v2 |
95 | | - if: matrix.os == 'ubuntu-18.04' |
96 | | - with: |
97 | | - name: arm6 |
98 | | - path: /home/runner/work/woodpecker/go/src/github.com/binance-chain/bsc/build/bin/geth-linux-arm-6 |
99 | | - |
100 | | - - name: Upload ARM-7 Build |
101 | | - uses: actions/upload-artifact@v2 |
102 | | - if: matrix.os == 'ubuntu-18.04' |
103 | | - with: |
104 | | - name: arm7 |
105 | | - path: /home/runner/work/woodpecker/go/src/github.com/binance-chain/bsc/build/bin/geth-linux-arm-7 |
106 | | - |
107 | | - - name: Upload ARM-64 Build |
108 | | - uses: actions/upload-artifact@v2 |
109 | | - if: matrix.os == 'ubuntu-18.04' |
110 | | - with: |
111 | | - name: arm64 |
112 | | - path: /home/runner/work/woodpecker/go/src/github.com/binance-chain/bsc/build/bin/geth-linux-arm64 |
113 | | - |
114 | 73 | release: |
115 | 74 | name: Release |
116 | 75 | needs: build |
@@ -143,30 +102,6 @@ jobs: |
143 | 102 | with: |
144 | 103 | name: windows |
145 | 104 | path: ./windows |
146 | | - |
147 | | - - name: Download Artifacts |
148 | | - uses: actions/download-artifact@v2 |
149 | | - with: |
150 | | - name: arm5 |
151 | | - path: ./arm5 |
152 | | - |
153 | | - - name: Download Artifacts |
154 | | - uses: actions/download-artifact@v2 |
155 | | - with: |
156 | | - name: arm6 |
157 | | - path: ./arm6 |
158 | | - |
159 | | - - name: Download Artifacts |
160 | | - uses: actions/download-artifact@v2 |
161 | | - with: |
162 | | - name: arm7 |
163 | | - path: ./arm7 |
164 | | - |
165 | | - - name: Download Artifacts |
166 | | - uses: actions/download-artifact@v2 |
167 | | - with: |
168 | | - name: arm64 |
169 | | - path: ./arm64 |
170 | 105 |
|
171 | 106 | - name: Download Config File |
172 | 107 | run: | |
@@ -226,46 +161,6 @@ jobs: |
226 | 161 | asset_path: ./windows/geth.exe |
227 | 162 | asset_name: geth_windows.exe |
228 | 163 | asset_content_type: application/octet-stream |
229 | | - |
230 | | - - name: Upload Release Asset - Linux ARM 5 |
231 | | - uses: actions/upload-release-asset@v1 |
232 | | - env: |
233 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
234 | | - with: |
235 | | - upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps |
236 | | - asset_path: ./arm5/geth-linux-arm-5 |
237 | | - asset_name: geth-linux-arm-5 |
238 | | - asset_content_type: application/octet-stream |
239 | | - |
240 | | - - name: Upload Release Asset - Linux ARM 6 |
241 | | - uses: actions/upload-release-asset@v1 |
242 | | - env: |
243 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
244 | | - with: |
245 | | - upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps |
246 | | - asset_path: ./arm6/geth-linux-arm-6 |
247 | | - asset_name: geth-linux-arm-6 |
248 | | - asset_content_type: application/octet-stream |
249 | | - |
250 | | - - name: Upload Release Asset - Linux ARM 7 |
251 | | - uses: actions/upload-release-asset@v1 |
252 | | - env: |
253 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
254 | | - with: |
255 | | - upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps |
256 | | - asset_path: ./arm7/geth-linux-arm-7 |
257 | | - asset_name: geth-linux-arm-7 |
258 | | - asset_content_type: application/octet-stream |
259 | | - |
260 | | - - name: Upload Release Asset - Linux ARM 64 |
261 | | - uses: actions/upload-release-asset@v1 |
262 | | - env: |
263 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
264 | | - with: |
265 | | - upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps |
266 | | - asset_path: ./arm64/geth-linux-arm64 |
267 | | - asset_name: geth-linux-arm64 |
268 | | - asset_content_type: application/octet-stream |
269 | 164 |
|
270 | 165 | - name: Upload Release Asset - MAINNET.ZIP |
271 | 166 | uses: actions/upload-release-asset@v1 |
|
0 commit comments