-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
During build, add standard capability binaries to -plugins image
- Loading branch information
1 parent
52c2db4
commit e75054b
Showing
2 changed files
with
27 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -83,12 +83,28 @@ jobs: | |
goarch: arm64 | ||
dist_name: linux_arm64_v8.0 | ||
steps: | ||
- name: Checkout repository | ||
- name: Setup Github Token | ||
id: token | ||
uses: smartcontractkit/.github/actions/setup-github-token@ef78fa97bf3c77de6563db1175422703e9e6674f # [email protected] | ||
with: | ||
aws-role-arn: ${{ secrets.AWS_OIDC_GLOBAL_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }} | ||
aws-lambda-url: ${{ secrets.AWS_INFRA_RELENG_TOKEN_ISSUER_LAMBDA_URL }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
set-git-config: "true" | ||
|
||
- name: Checkout chainlink repository | ||
uses: actions/[email protected] | ||
with: | ||
ref: ${{ env.CHECKOUT_REF }} | ||
fetch-depth: 0 | ||
|
||
- name: Checkout capabilities repository | ||
uses: actions/[email protected] | ||
with: | ||
repository: smartcontractkit/capabilities | ||
token: ${{ steps.token.outputs.access-token }} | ||
path: capabilities | ||
|
||
- name: Configure aws credentials | ||
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 | ||
with: | ||
|
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ before_hook() { | |
install_local_plugins | ||
install_remote_plugins | ||
mkdir -p "$lib_path/plugins" | ||
build_standard_capabilities | ||
|
||
# Retrieve GOPATH | ||
GOPATH=$(go env GOPATH) | ||
|
@@ -71,6 +72,15 @@ get_remote_plugin_paths() { | |
done | ||
} | ||
|
||
build_standard_capabilities() { | ||
cd ./capabilities | ||
npx [email protected] init | ||
./nx run-many -t build | ||
# binaries get put into /bin under /bin/amd64/ and /bin/arm64/ | ||
cp "./bin/$(go env GOARCH)"/* "../$lib_path/plugins" | ||
cd ../ | ||
} | ||
|
||
install_remote_plugins() { | ||
ldflags=(-ldflags "$(./tools/bin/ldflags)") | ||
|
||
|