-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: add github action to build neard binary with test_features en…
…abled (#12733) This can be useful for forknet testing.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Neard test features binary release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
default: 'master' | ||
description: "Nearcore branch to build and publish" | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
binary-release: | ||
name: "Build and publish neard binary" | ||
runs-on: "ubuntu-20.04-16core" | ||
environment: deploy | ||
permissions: | ||
id-token: write # required to use OIDC authentication | ||
|
||
steps: | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: arn:aws:iam::590184106962:role/GitHubActionsRunner | ||
aws-region: us-west-1 | ||
|
||
- name: Checkout ${{ github.event.inputs.branch }} branch | ||
if: ${{ github.event_name == 'workflow_dispatch'}} | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.branch }} | ||
|
||
- name: Neard binary build and upload to S3 | ||
run: ./scripts/binary_release.sh test-features-release |