diff options
author | Ayke van Laethem <[email protected]> | 2021-04-07 00:37:23 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2021-04-07 08:08:40 +0200 |
commit | c246978dd7844192c414c0d95428d1d7e9a6f6a6 (patch) | |
tree | c2855eb13fb9d04153197744ac6bf986675845e6 /.circleci | |
parent | 72acda22b0a8d137405e41e9ed54cbfbcce7b26f (diff) | |
download | tinygo-c246978dd7844192c414c0d95428d1d7e9a6f6a6.tar.gz tinygo-c246978dd7844192c414c0d95428d1d7e9a6f6a6.zip |
ci: limit test runs of assert-test-linux to two jobs
Instead of the regular build, it's the `make test` line that fails due
to OOM. This is because testing means that a lot of test binaries need
to be built while the regular build only needs to link one binary.
This improves https://github.com/tinygo-org/tinygo/pull/1774 and should
hopefully actually fix the OOM errors.
Diffstat (limited to '.circleci')
-rw-r--r-- | .circleci/config.yml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index df88adaa1..4e5de56e2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -172,15 +172,16 @@ commands: key: llvm-build-11-linux-v2-assert paths: llvm-build - - run: | - # Note: -p=2 limits parallelism to two jobs at a time, which is - # necessary to keep memory consumption down and avoid OOM (for a - # 2CPU/4GB executor). - GOFLAGS="-p=2" make ASSERT=1 + - run: make ASSERT=1 - build-wasi-libc - run: name: "Test TinyGo" command: make ASSERT=1 test + environment: + # Note: -p=2 limits parallelism to two jobs at a time, which is + # necessary to keep memory consumption down and avoid OOM (for a + # 2CPU/4GB executor). + GOFLAGS: -p=2 - save_cache: key: go-cache-v2-{{ checksum "go.mod" }}-{{ .Environment.CIRCLE_BUILD_NUM }} paths: |