|
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 | +
|
48 | 61 | # ==============================
|
49 | 62 | # Upload artifacts
|
50 | 63 | # ==============================
|
|
70 | 83 | name: windows
|
71 | 84 | path: ./build/bin/geth.exe
|
72 | 85 |
|
| 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 | + |
73 | 114 | release:
|
74 | 115 | name: Release
|
75 | 116 | needs: build
|
@@ -102,6 +143,30 @@ jobs:
|
102 | 143 | with:
|
103 | 144 | name: windows
|
104 | 145 | 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 |
105 | 170 |
|
106 | 171 | - name: Download Config File
|
107 | 172 | run: |
|
@@ -161,6 +226,46 @@ jobs:
|
161 | 226 | asset_path: ./windows/geth.exe
|
162 | 227 | asset_name: geth_windows.exe
|
163 | 228 | 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 |
164 | 269 |
|
165 | 270 | - name: Upload Release Asset - MAINNET.ZIP
|
166 | 271 | uses: actions/upload-release-asset@v1
|
|
0 commit comments