Skip to content

Commit

Permalink
Build and deploy validator.wasm to ampjs.org
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrozenberg committed Jan 12, 2024
1 parent dfb7fe0 commit 66590b2
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ push_and_pr_builds: &push_and_pr_builds
branches:
ignore:
- nightly
- /.*/ # TODO DO NOT MERGE

push_builds_only: &push_builds_only
filters:
Expand All @@ -24,6 +25,7 @@ release_builds_only: &release_builds_only
only:
- nightly
- /^amp-release-.*$/
- /.*/ # TODO DO NOT MERGE

pr_builds_only: &pr_builds_only
filters:
Expand Down Expand Up @@ -482,14 +484,28 @@ jobs:
name: '⭐ amp release ⭐'
command: node --unhandled-rejections=strict build-system/release-workflows/build-release.js
- teardown_vm
validator_wasm:
executor:
name: node-docker-xlarge
steps:
- setup_vm
- run:
name: 'Install Validator Dependencies'
command: ./.circleci/install_validator_dependencies.sh
- run:
name: '⭐ Validator WASM Library'
command: |
cd validator/
bazel build cpp/engine/wasm:validator_js_bin
- teardown_vm
upload_release:
executor:
name: node-docker-medium
steps:
- setup_vm
- run:
name: '⭐ Upload Release Artifacts ⭐'
command: node --unhandled-rejections=strict build-system/release-workflows/upload-release.js
command: echo 1 # TODO DO NOT MERGE node --unhandled-rejections=strict build-system/release-workflows/upload-release.js
- store_artifacts:
path: /tmp/release.tar.gz
- teardown_vm
Expand Down Expand Up @@ -653,11 +669,17 @@ workflows:
<<: *release_builds_only
requires:
- 'Initialize Repository'
- validator_wasm:
name: 'Validator WASM Library'
<<: *release_builds_only
requires:
- 'Initialize Repository'
- upload_release:
name: 'Upload Release'
<<: *release_builds_only
requires:
- amp_release
- 'Validator WASM Library'
context:
- release-build-uploader
- trigger_promote:
Expand Down

0 comments on commit 66590b2

Please sign in to comment.