Skip to content

Commit

Permalink
Merge pull request scala#10703 from dotty-staging/ci-reduce-cpu-count
Browse files Browse the repository at this point in the history
CI: each job can only use 4 cores
  • Loading branch information
smarter authored Dec 8, 2020
2 parents 1f173db + f90a97d commit a30a591
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
runs-on: [self-hosted, Linux]
container:
image: lampepfl/dotty:2020-11-19
options: --cpus=4
volumes:
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
Expand Down Expand Up @@ -53,6 +54,7 @@ jobs:
runs-on: [self-hosted, Linux]
container:
image: lampepfl/dotty:2020-11-19
options: --cpus=4
volumes:
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
Expand Down Expand Up @@ -137,6 +139,7 @@ jobs:
runs-on: [self-hosted, Linux]
container:
image: lampepfl/dotty:2020-11-19
options: --cpus=4
volumes:
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
Expand Down Expand Up @@ -172,6 +175,7 @@ jobs:
runs-on: [self-hosted, Linux]
container:
image: lampepfl/dotty:2020-11-19
options: --cpus=4
volumes:
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
Expand Down Expand Up @@ -207,6 +211,7 @@ jobs:
runs-on: [self-hosted, Linux]
container:
image: lampepfl/dotty:2020-11-19
options: --cpus=4
volumes:
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
Expand Down Expand Up @@ -242,6 +247,7 @@ jobs:
runs-on: [self-hosted, Linux]
container:
image: lampepfl/dotty:2020-11-19
options: --cpus=4
volumes:
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
Expand Down Expand Up @@ -284,6 +290,7 @@ jobs:
runs-on: [self-hosted, Linux]
container:
image: lampepfl/dotty:2020-11-19
options: --cpus=4
volumes:
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
Expand Down Expand Up @@ -318,6 +325,7 @@ jobs:
runs-on: [self-hosted, Linux]
container:
image: lampepfl/dotty:2020-11-19
options: --cpus=4
volumes:
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
Expand Down Expand Up @@ -359,6 +367,7 @@ jobs:
runs-on: [self-hosted, Linux]
container:
image: lampepfl/dotty:2020-11-19
options: --cpus=4
volumes:
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
Expand Down Expand Up @@ -441,6 +450,7 @@ jobs:
runs-on: [self-hosted, Linux]
container:
image: lampepfl/dotty:2020-11-19
options: --cpus=4
volumes:
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
Expand Down
3 changes: 1 addition & 2 deletions project/scripts/sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ set -e
CMD="${1:?Missing sbt command}"

# run sbt with the supplied arg
sbt -J-Xmx4096m \
-J-XX:ReservedCodeCacheSize=512m \
sbt -J-XX:ReservedCodeCacheSize=512m \
-DSBT_PGP_USE_GPG=false \
-no-colors \
"$CMD"

0 comments on commit a30a591

Please sign in to comment.