-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into tarak/6354-keygen-update
- Loading branch information
Showing
706 changed files
with
33,147 additions
and
18,228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Build Tools | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: 'Tagged commit to build tools against' | ||
required: true | ||
type: string | ||
promote: | ||
description: 'Should this build be promoted to the official boot-tools?' | ||
required: false | ||
type: boolean | ||
|
||
jobs: | ||
build-publish: | ||
name: Build boot tools | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: auth | ||
uses: google-github-actions/auth@v1 | ||
with: | ||
credentials_json: ${{ secrets.GCR_SERVICE_KEY }} # TODO: we need a new key to allow uploads | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.19' | ||
- name: Set up Google Cloud SDK | ||
uses: google-github-actions/setup-gcloud@v1 | ||
with: | ||
project_id: flow | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ inputs.tag }} | ||
- name: Build relic | ||
run: make crypto_setup_gopath | ||
- name: Build and upload boot-tools | ||
run: | | ||
make tool-bootstrap tool-transit | ||
mkdir boot-tools | ||
mv bootstrap transit boot-tools/ | ||
tar -czf boot-tools.tar ./boot-tools/ | ||
gsutil cp boot-tools.tar gs://flow-genesis-bootstrap/tools/${{ inputs.tag }}/boot-tools.tar | ||
- name: Build and upload util | ||
run: | | ||
make tool-util | ||
tar -czf util.tar util | ||
gsutil cp util.tar gs://flow-genesis-bootstrap/tools/${{ inputs.tag }}/util.tar | ||
- name: Promote boot-tools | ||
run: | | ||
if [[ "${{ inputs.promote }}" = true ]]; then | ||
echo "promoting boot-tools.tar" | ||
gsutil cp boot-tools.tar gs://flow-genesis-bootstrap/boot-tools.tar | ||
else | ||
echo "not promoting boot-tools.tar" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.