Skip to content

[cip-56] Remove freezable check on epoch rewards (#2164) #54

[cip-56] Remove freezable check on epoch rewards (#2164)

[cip-56] Remove freezable check on epoch rewards (#2164) #54

name: Build and Sign Blockchain Binaries
on:
push:
branches:
- master
- 'release/[0-9]+.[0-9]+'
workflow_dispatch:
jobs:
Build-Container-Blockchain-Binaries:
uses: celo-org/reusable-workflows/.github/workflows/[email protected]
with:
workload-id-provider: 'projects/1094498259535/locations/global/workloadIdentityPools/gh-celo-blockchain/providers/github-by-repos'
service-account: '[email protected]'
artifact-registry: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/geth-xgo-builder
tag: latest
context: .
file: Dockerfile.binaries
Upload-Cloud-Storage:
runs-on: ubuntu-latest
needs:
- Build-Container-Blockchain-Binaries
permissions:
contents: 'read'
id-token: 'write'
env:
BUILD_TARGETS: linux/amd64,linux/arm64
TAG_NAME: ${{ github.ref_name }}
BRANCH_NAME: ${{ github.ref_name }}
REPO_NAME: ${{ github.repository }}
COMMIT_SHA: ${{ github.sha }}
steps:
- name: 'Checkout'
uses: actions/checkout@v3
- id: 'auth-gcp-master'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1'
with:
workload_identity_provider: 'projects/1094498259535/locations/global/workloadIdentityPools/gh-celo-blockchain/providers/github-by-repos'
service_account: '[email protected]'
access_token_lifetime: '40m'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@877d4953d2c70a0ba7ef3290ae968eb24af233bb'
- name: 'Configure docker for gcloud auth'
run: 'gcloud auth configure-docker us-west1-docker.pkg.dev'
- name: 'Get timestamp'
run: |
timestamp=$(date +%s)
echo "COMMIT_TIMESTAMP=${timestamp}" >> $GITHUB_ENV
- name: 'Go Run all-tools'
run: |
docker run --rm -v $(pwd)/build/bin:/build -v $(pwd)/build/archives:/archives -v $(pwd):/go/src/github.com/celo-org/celo-blockchain --entrypoint /bin/sh --env BUILD_TARGETS=$_BUILD_TARGETS --env TAG_NAME=$TAG_NAME --env BRANCH_NAME=$BRANCH_NAME --env REPO_NAME=$REPO_NAME --env COMMIT_SHA=$COMMIT_SHA --env COMMIT_TIMESTAMP=${{ env.COMMIT_TIMESTAMP }} --env CLOUDBUILD=True --env CI=True us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/geth-xgo-builder:$COMMIT_SHA -c "go run build/ci.go xgo --alltools -- -targets=$BUILD_TARGETS -v -dest /build"
- name: 'Go Run xgo-archive'
run: |
docker run --rm -v $(pwd)/build/bin:/build -v $(pwd)/build/archives:/archives -v $(pwd):/go/src/github.com/celo-org/celo-blockchain --entrypoint /bin/sh --env BUILD_TARGETS=$_BUILD_TARGETS --env TAG_NAME=$TAG_NAME --env BRANCH_NAME=$BRANCH_NAME --env REPO_NAME=$REPO_NAME --env COMMIT_SHA=$COMMIT_SHA --env COMMIT_TIMESTAMP=${{ env.COMMIT_TIMESTAMP }} --env CLOUDBUILD=True --env CI=True us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/geth-xgo-builder:$COMMIT_SHA -c "go run build/ci.go xgo-archive -targets=$BUILD_TARGETS -in /build -out /archives"
- name: 'Upload to storage bucket'
uses: 'google-github-actions/upload-cloud-storage@v1'
with:
path: './build/archives'
destination: celo-blockchain-binaries/binaries/${{ env.BRANCH_NAME }}
parent: false