Skip to content

Commit

Permalink
fix(examples): build go examples sequentially as we do with java ones
Browse files Browse the repository at this point in the history
adding the example for google cloud might have caused the build to fail as generating the aws provider already requires almost all available memory and simultaneously also generating the google provider might have been to much for the 7 GB of memory available in Github Actions
  • Loading branch information
ansgarm committed Jun 15, 2021
1 parent 5b2da57 commit 21bc3d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"package-windows": "lerna run package && tools\\collect-dist.bat",
"bootstrap-plugin-cache": "./test/run-against-dist ./tools/bootstrap-plugin-cache.sh",
"examples:integration": "test/run-against-dist tools/build-examples.sh",
"examples:integration:java": "test/run-against-dist tools/build-examples-java.sh",
"examples:integration:java": "test/run-against-dist tools/build-examples-sequential.sh java",
"examples:integration:csharp": "test/run-against-dist tools/build-examples.sh csharp",
"examples:integration:python": "test/run-against-dist tools/build-examples.sh python",
"examples:integration:typescript": "test/run-against-dist tools/build-examples.sh typescript",
"examples:integration:go": "test/run-against-dist tools/build-examples.sh go",
"examples:integration:go": "test/run-against-dist tools/build-examples-sequential.sh go",
"test": "lerna run --scope cdktf* --scope @cdktf* test",
"watch": "lerna run --parallel --stream --scope cdktf* watch-preserve-output",
"link-packages": "lerna exec --scope cdktf* --scope @cdktf* yarn link",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ cd $(dirname $0)/..
# Disable spinner even when we have a TTY
export CI='1'

npx lerna run --stream --concurrency 1 --no-bail --scope @examples/java* reinstall
npx lerna run --stream --concurrency 1 --no-bail --scope @examples/java* build
npx lerna run --stream --concurrency 1 --no-bail --scope @examples/java* synth
BUILD_TARGET=$1

npx lerna run --stream --concurrency 1 --no-bail --scope @examples/${BUILD_TARGET}* reinstall
npx lerna run --stream --concurrency 1 --no-bail --scope @examples/${BUILD_TARGET}* build
npx lerna run --stream --concurrency 1 --no-bail --scope @examples/${BUILD_TARGET}* synth

0 comments on commit 21bc3d5

Please sign in to comment.