ci: update unmaintained tools to use maintained tools

This commit is contained in:
j75689 2022-12-22 16:47:43 +08:00 committed by Larry
parent 30369897f2
commit b37d44b289
8 changed files with 120 additions and 272 deletions

@ -16,18 +16,18 @@ jobs:
strategy: strategy:
matrix: matrix:
go-version: [1.17.x] go-version: [1.17.x]
os: [ubuntu-18.04] os: [ubuntu-latest]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: Install Go - name: Install Go
uses: actions/setup-go@v2 uses: actions/setup-go@v3
with: with:
go-version: ${{ matrix.go-version }} go-version: ${{ matrix.go-version }}
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v3
- uses: actions/cache@v2 - uses: actions/cache@v3
with: with:
# In order: # In order:
# * Module download cache # * Module download cache
@ -38,7 +38,7 @@ jobs:
~/go/pkg/mod ~/go/pkg/mod
~/.cache/go-build ~/.cache/go-build
~/Library/Caches/go-build ~/Library/Caches/go-build
%LocalAppData%\go-build ~\AppData\Local\go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: | restore-keys: |
${{ runner.os }}-go- ${{ runner.os }}-go-

@ -16,7 +16,7 @@ jobs:
strategy: strategy:
matrix: matrix:
node-version: [14.x] node-version: [14.x]
os: [ubuntu-18.04] os: [ubuntu-latest]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

@ -16,7 +16,7 @@ jobs:
if: github.event_name == 'push' if: github.event_name == 'push'
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Build image - name: Build image
run: | run: |

@ -15,11 +15,11 @@ jobs:
truffle-test: truffle-test:
strategy: strategy:
matrix: matrix:
os: [ubuntu-18.04] os: [ubuntu-latest]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Truffle test - name: Truffle test
run: make truffle-test run: make truffle-test

@ -16,18 +16,18 @@ jobs:
strategy: strategy:
matrix: matrix:
go-version: [1.17.x] go-version: [1.17.x]
os: [ubuntu-18.04] os: [ubuntu-latest]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: Install Go - name: Install Go
uses: actions/setup-go@v2 uses: actions/setup-go@v3
with: with:
go-version: ${{ matrix.go-version }} go-version: ${{ matrix.go-version }}
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v3
- uses: actions/cache@v2 - uses: actions/cache@v3
with: with:
# In order: # In order:
# * Module download cache # * Module download cache
@ -38,7 +38,7 @@ jobs:
~/go/pkg/mod ~/go/pkg/mod
~/.cache/go-build ~/.cache/go-build
~/Library/Caches/go-build ~/Library/Caches/go-build
%LocalAppData%\go-build ~\AppData\Local\go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: | restore-keys: |
${{ runner.os }}-go- ${{ runner.os }}-go-

@ -2,6 +2,7 @@ name: Pre Release
on: on:
push: push:
# Publish `pre-v1.2.3` tags as releases.
tags: tags:
- 'pre-*' - 'pre-*'
@ -11,18 +12,18 @@ jobs:
strategy: strategy:
matrix: matrix:
go-version: [1.17.x] go-version: [1.17.x]
os: [ubuntu-18.04, macos-11, windows-2019] os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Install Go - name: Install Go
uses: actions/setup-go@v2 uses: actions/setup-go@v3
with: with:
go-version: ${{ matrix.go-version }} go-version: ${{ matrix.go-version }}
- uses: actions/cache@v2 - uses: actions/cache@v3
with: with:
# In order: # In order:
# * Module download cache # * Module download cache
@ -33,10 +34,11 @@ jobs:
~/go/pkg/mod ~/go/pkg/mod
~/.cache/go-build ~/.cache/go-build
~/Library/Caches/go-build ~/Library/Caches/go-build
%LocalAppData%\go-build ~\AppData\Local\go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: | restore-keys: |
${{ runner.os }}-go- ${{ runner.os }}-go-
# ============================== # ==============================
# Linux/Macos/Windows Build # Linux/Macos/Windows Build
# ============================== # ==============================
@ -49,7 +51,7 @@ jobs:
# ============================== # ==============================
- name: Build Binary for ARM - name: Build Binary for ARM
if: matrix.os == 'ubuntu-18.04' if: matrix.os == 'ubuntu-latest'
run: | run: |
make geth-linux-arm make geth-linux-arm
# ============================== # ==============================
@ -57,50 +59,50 @@ jobs:
# ============================== # ==============================
- name: Upload Linux Build - name: Upload Linux Build
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
if: matrix.os == 'ubuntu-18.04' if: matrix.os == 'ubuntu-latest'
with: with:
name: linux name: linux
path: ./build/bin/geth path: ./build/bin/geth
- name: Upload MacOS Build - name: Upload MacOS Build
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
if: matrix.os == 'macos-11' if: matrix.os == 'macos-latest'
with: with:
name: macos name: macos
path: ./build/bin/geth path: ./build/bin/geth
- name: Upload Windows Build - name: Upload Windows Build
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
if: matrix.os == 'windows-2019' if: matrix.os == 'windows-latest'
with: with:
name: windows name: windows
path: ./build/bin/geth.exe path: ./build/bin/geth.exe
- name: Upload ARM-5 Build - name: Upload ARM-5 Build
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
if: matrix.os == 'ubuntu-18.04' if: matrix.os == 'ubuntu-latest'
with: with:
name: arm5 name: arm5
path: ./build/bin/geth-linux-arm-5 path: ./build/bin/geth-linux-arm-5
- name: Upload ARM-6 Build - name: Upload ARM-6 Build
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
if: matrix.os == 'ubuntu-18.04' if: matrix.os == 'ubuntu-latest'
with: with:
name: arm6 name: arm6
path: ./build/bin/geth-linux-arm-6 path: ./build/bin/geth-linux-arm-6
- name: Upload ARM-7 Build - name: Upload ARM-7 Build
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
if: matrix.os == 'ubuntu-18.04' if: matrix.os == 'ubuntu-latest'
with: with:
name: arm7 name: arm7
path: ./build/bin/geth-linux-arm-7 path: ./build/bin/geth-linux-arm-7
- name: Upload ARM-64 Build - name: Upload ARM-64 Build
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
if: matrix.os == 'ubuntu-18.04' if: matrix.os == 'ubuntu-latest'
with: with:
name: arm64 name: arm64
path: ./build/bin/geth-linux-arm64 path: ./build/bin/geth-linux-arm64
@ -108,56 +110,56 @@ jobs:
release: release:
name: Release name: Release
needs: build needs: build
runs-on: ubuntu-18.04 runs-on: ubuntu-latest
steps: steps:
- name: Set Env - name: Set Env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v2 uses: actions/checkout@v3
# ============================== # ==============================
# Download artifacts # Download artifacts
# ============================== # ==============================
- name: Download Artifacts - name: Download Artifacts
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: linux name: linux
path: ./linux path: ./linux
- name: Download Artifacts - name: Download Artifacts
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: macos name: macos
path: ./macos path: ./macos
- name: Download Artifacts - name: Download Artifacts
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: windows name: windows
path: ./windows path: ./windows
- name: Download Artifacts - name: Download Artifacts
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: arm5 name: arm5
path: ./arm5 path: ./arm5
- name: Download Artifacts - name: Download Artifacts
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: arm6 name: arm6
path: ./arm6 path: ./arm6
- name: Download Artifacts - name: Download Artifacts
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: arm7 name: arm7
path: ./arm7 path: ./arm7
- name: Download Artifacts - name: Download Artifacts
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: arm64 name: arm64
path: ./arm64 path: ./arm64
@ -173,109 +175,31 @@ jobs:
# Create release # Create release
# ============================== # ==============================
# Rename assets
- run: |
mv ./linux/geth ./linux/geth_linux
mv ./macos/geth ./macos/geth_macos
mv ./windows/geth.exe ./windows/geth_windows.exe
- name: Create Release - name: Create Release
id: create_release uses: softprops/action-gh-release@v1
uses: actions/create-release@latest
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with: with:
tag_name: ${{ github.ref }} tag_name: ${{ env.RELEASE_VERSION}}
release_name: ${{ github.ref }} release_name: ${{ env.RELEASE_VERSION}}
body: | body: |
versing: ${{ env.RELEASE_VERSION}} versing: ${{ env.RELEASE_VERSION}}
git commit: ${{ github.sha }} git commit: ${{ github.sha }}
draft: true draft: true
prerelease: true prerelease: true
files: |
# Check downloaded files ./mainnet.zip
- run: ls ./testnet.zip
./linux/geth_linux
- name: Upload Release Asset - Linux ./macos/geth_macos
uses: actions/upload-release-asset@v1 ./windows/geth_windows.exe
env: ./arm5/geth-linux-arm-5
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ./arm6/geth-linux-arm-6
with: ./arm7/geth-linux-arm-7
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 ./arm64/geth-linux-arm64
asset_path: ./linux/geth
asset_name: geth_linux
asset_content_type: application/octet-stream
- name: Upload Release Asset - MacOS
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
asset_path: ./macos/geth
asset_name: geth_mac
asset_content_type: application/octet-stream
- name: Upload Release Asset - Windows
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
asset_path: ./windows/geth.exe
asset_name: geth_windows.exe
asset_content_type: application/octet-stream
- name: Upload Release Asset - Linux ARM 5
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
asset_path: ./arm5/geth-linux-arm-5
asset_name: geth-linux-arm-5
asset_content_type: application/octet-stream
- name: Upload Release Asset - Linux ARM 6
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
asset_path: ./arm6/geth-linux-arm-6
asset_name: geth-linux-arm-6
asset_content_type: application/octet-stream
- name: Upload Release Asset - Linux ARM 7
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
asset_path: ./arm7/geth-linux-arm-7
asset_name: geth-linux-arm-7
asset_content_type: application/octet-stream
- name: Upload Release Asset - Linux ARM 64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
asset_path: ./arm64/geth-linux-arm64
asset_name: geth-linux-arm64
asset_content_type: application/octet-stream
- name: Upload Release Asset - MAINNET.ZIP
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
asset_path: ./mainnet.zip
asset_name: mainnet.zip
asset_content_type: application/zip
- name: Upload Release Asset - TESTNET.ZIP
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
asset_path: ./testnet.zip
asset_name: testnet.zip
asset_content_type: application/zip

@ -12,18 +12,18 @@ jobs:
strategy: strategy:
matrix: matrix:
go-version: [1.17.x] go-version: [1.17.x]
os: [ubuntu-18.04, macos-11, windows-2019] os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Install Go - name: Install Go
uses: actions/setup-go@v2 uses: actions/setup-go@v3
with: with:
go-version: ${{ matrix.go-version }} go-version: ${{ matrix.go-version }}
- uses: actions/cache@v2 - uses: actions/cache@v3
with: with:
# In order: # In order:
# * Module download cache # * Module download cache
@ -34,10 +34,11 @@ jobs:
~/go/pkg/mod ~/go/pkg/mod
~/.cache/go-build ~/.cache/go-build
~/Library/Caches/go-build ~/Library/Caches/go-build
%LocalAppData%\go-build ~\AppData\Local\go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: | restore-keys: |
${{ runner.os }}-go- ${{ runner.os }}-go-
# ============================== # ==============================
# Linux/Macos/Windows Build # Linux/Macos/Windows Build
# ============================== # ==============================
@ -50,7 +51,7 @@ jobs:
# ============================== # ==============================
- name: Build Binary for ARM - name: Build Binary for ARM
if: matrix.os == 'ubuntu-18.04' if: matrix.os == 'ubuntu-latest'
run: | run: |
make geth-linux-arm make geth-linux-arm
# ============================== # ==============================
@ -58,50 +59,50 @@ jobs:
# ============================== # ==============================
- name: Upload Linux Build - name: Upload Linux Build
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
if: matrix.os == 'ubuntu-18.04' if: matrix.os == 'ubuntu-latest'
with: with:
name: linux name: linux
path: ./build/bin/geth path: ./build/bin/geth
- name: Upload MacOS Build - name: Upload MacOS Build
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
if: matrix.os == 'macos-11' if: matrix.os == 'macos-latest'
with: with:
name: macos name: macos
path: ./build/bin/geth path: ./build/bin/geth
- name: Upload Windows Build - name: Upload Windows Build
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
if: matrix.os == 'windows-2019' if: matrix.os == 'windows-latest'
with: with:
name: windows name: windows
path: ./build/bin/geth.exe path: ./build/bin/geth.exe
- name: Upload ARM-5 Build - name: Upload ARM-5 Build
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
if: matrix.os == 'ubuntu-18.04' if: matrix.os == 'ubuntu-latest'
with: with:
name: arm5 name: arm5
path: ./build/bin/geth-linux-arm-5 path: ./build/bin/geth-linux-arm-5
- name: Upload ARM-6 Build - name: Upload ARM-6 Build
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
if: matrix.os == 'ubuntu-18.04' if: matrix.os == 'ubuntu-latest'
with: with:
name: arm6 name: arm6
path: ./build/bin/geth-linux-arm-6 path: ./build/bin/geth-linux-arm-6
- name: Upload ARM-7 Build - name: Upload ARM-7 Build
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
if: matrix.os == 'ubuntu-18.04' if: matrix.os == 'ubuntu-latest'
with: with:
name: arm7 name: arm7
path: ./build/bin/geth-linux-arm-7 path: ./build/bin/geth-linux-arm-7
- name: Upload ARM-64 Build - name: Upload ARM-64 Build
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
if: matrix.os == 'ubuntu-18.04' if: matrix.os == 'ubuntu-latest'
with: with:
name: arm64 name: arm64
path: ./build/bin/geth-linux-arm64 path: ./build/bin/geth-linux-arm64
@ -109,56 +110,56 @@ jobs:
release: release:
name: Release name: Release
needs: build needs: build
runs-on: ubuntu-18.04 runs-on: ubuntu-latest
steps: steps:
- name: Set Env - name: Set Env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v2 uses: actions/checkout@v3
# ============================== # ==============================
# Download artifacts # Download artifacts
# ============================== # ==============================
- name: Download Artifacts - name: Download Artifacts
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: linux name: linux
path: ./linux path: ./linux
- name: Download Artifacts - name: Download Artifacts
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: macos name: macos
path: ./macos path: ./macos
- name: Download Artifacts - name: Download Artifacts
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: windows name: windows
path: ./windows path: ./windows
- name: Download Artifacts - name: Download Artifacts
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: arm5 name: arm5
path: ./arm5 path: ./arm5
- name: Download Artifacts - name: Download Artifacts
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: arm6 name: arm6
path: ./arm6 path: ./arm6
- name: Download Artifacts - name: Download Artifacts
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: arm7 name: arm7
path: ./arm7 path: ./arm7
- name: Download Artifacts - name: Download Artifacts
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: arm64 name: arm64
path: ./arm64 path: ./arm64
@ -181,108 +182,31 @@ jobs:
echo "CHANGELOG<<EOF" >> $GITHUB_ENV echo "CHANGELOG<<EOF" >> $GITHUB_ENV
echo "$CHANGELOG" >> $GITHUB_ENV echo "$CHANGELOG" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV echo "EOF" >> $GITHUB_ENV
# Rename assets
- run: |
mv ./linux/geth ./linux/geth_linux
mv ./macos/geth ./macos/geth_macos
mv ./windows/geth.exe ./windows/geth_windows.exe
- name: Create Release - name: Create Release
id: create_release uses: softprops/action-gh-release@v1
uses: actions/create-release@latest
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with: with:
tag_name: ${{ github.ref }} tag_name: ${{ env.RELEASE_VERSION}}
release_name: ${{ github.ref }} release_name: ${{ env.RELEASE_VERSION}}
body: | body: |
${{ env.CHANGELOG }} ${{ env.CHANGELOG }}
draft: false draft: false
prerelease: false prerelease: false
files: |
# Check downloaded files ./mainnet.zip
- run: ls ./testnet.zip
./linux/geth_linux
- name: Upload Release Asset - Linux ./macos/geth_macos
uses: actions/upload-release-asset@v1 ./windows/geth_windows.exe
env: ./arm5/geth-linux-arm-5
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ./arm6/geth-linux-arm-6
with: ./arm7/geth-linux-arm-7
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 ./arm64/geth-linux-arm64
asset_path: ./linux/geth
asset_name: geth_linux
asset_content_type: application/octet-stream
- name: Upload Release Asset - MacOS
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
asset_path: ./macos/geth
asset_name: geth_mac
asset_content_type: application/octet-stream
- name: Upload Release Asset - Windows
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
asset_path: ./windows/geth.exe
asset_name: geth_windows.exe
asset_content_type: application/octet-stream
- name: Upload Release Asset - Linux ARM 5
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
asset_path: ./arm5/geth-linux-arm-5
asset_name: geth-linux-arm-5
asset_content_type: application/octet-stream
- name: Upload Release Asset - Linux ARM 6
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
asset_path: ./arm6/geth-linux-arm-6
asset_name: geth-linux-arm-6
asset_content_type: application/octet-stream
- name: Upload Release Asset - Linux ARM 7
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
asset_path: ./arm7/geth-linux-arm-7
asset_name: geth-linux-arm-7
asset_content_type: application/octet-stream
- name: Upload Release Asset - Linux ARM 64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
asset_path: ./arm64/geth-linux-arm64
asset_name: geth-linux-arm64
asset_content_type: application/octet-stream
- name: Upload Release Asset - MAINNET.ZIP
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
asset_path: ./mainnet.zip
asset_name: mainnet.zip
asset_content_type: application/zip
- name: Upload Release Asset - TESTNET.ZIP
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
asset_path: ./testnet.zip
asset_name: testnet.zip
asset_content_type: application/zip

@ -16,18 +16,18 @@ jobs:
strategy: strategy:
matrix: matrix:
go-version: [1.17.x] go-version: [1.17.x]
os: [ubuntu-18.04] os: [ubuntu-latest]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: Install Go - name: Install Go
uses: actions/setup-go@v2 uses: actions/setup-go@v3
with: with:
go-version: ${{ matrix.go-version }} go-version: ${{ matrix.go-version }}
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v3
- uses: actions/cache@v2 - uses: actions/cache@v3
with: with:
# In order: # In order:
# * Module download cache # * Module download cache
@ -38,7 +38,7 @@ jobs:
~/go/pkg/mod ~/go/pkg/mod
~/.cache/go-build ~/.cache/go-build
~/Library/Caches/go-build ~/Library/Caches/go-build
%LocalAppData%\go-build ~\AppData\Local\go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: | restore-keys: |
${{ runner.os }}-go- ${{ runner.os }}-go-