Skip to content

Commit

Permalink
try use group
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Dec 10, 2024
1 parent aa071ba commit 3d59b83
Showing 1 changed file with 41 additions and 15 deletions.
56 changes: 41 additions & 15 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ concurrency:
env:
DOTTY_CI_RUN: true
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
# In this file, we set `--cpu-shares 4096` on every job. This might seem useless

# In this file, we set `--cpu-shares 4096` on every job. This might seem useless
# since it means that every container has the same weight which should be
# equivalent to doing nothing, but it turns out that OpenJDK computes
# `Runtime.getRuntime.availableProcessors` by dividing the cpu-shares value if
Expand All @@ -54,7 +54,9 @@ env:

jobs:
test_non_bootstrapped:
runs-on: ${{ github.repository == 'scala/scala3' && 'Linux' || 'ubuntu-latest' }}
runs-on:
group: Default
labels: Linux
container:
image: wojciechmazur95/dotty:2024-12-10-test
options: --cpu-shares 4096
Expand Down Expand Up @@ -105,7 +107,9 @@ jobs:
./project/scripts/cmdTests
test:
runs-on: ${{ github.repository == 'scala/scala3' && 'Linux' || 'ubuntu-latest' }}
runs-on:
group: Default
labels: Linux
container:
image: wojciechmazur95/dotty:2024-12-10-test
options: --cpu-shares 4096
Expand Down Expand Up @@ -164,7 +168,9 @@ jobs:
run: ./project/scripts/sbt ";set ThisBuild/Build.scala2Library := Build.Scala2LibraryCCTasty; scala2-library-cc/compile; scala2-library-cc-tasty/compile; scala3-bootstrapped/testCompilation i3"

test_scala2_library_tasty:
runs-on: ${{ github.repository == 'scala/scala3' && 'Linux' || 'ubuntu-latest' }}
runs-on:
group: Default
labels: Linux
container:
image: wojciechmazur95/dotty:2024-12-10-test
options: --cpu-shares 4096
Expand Down Expand Up @@ -288,7 +294,9 @@ jobs:

mima:
name: MiMa
runs-on: ${{ github.repository == 'scala/scala3' && 'Linux' || 'ubuntu-latest' }}
runs-on:
group: Default
labels: Linux
container:
image: wojciechmazur95/dotty:2024-12-10-test
options: --cpu-shares 4096
Expand Down Expand Up @@ -338,7 +346,9 @@ jobs:
./project/scripts/scala2-library-tasty-mima.sh
community_build_a:
runs-on: ${{ github.repository == 'scala/scala3' && 'Linux' || 'ubuntu-latest' }}
runs-on:
group: Default
labels: Linux
container:
image: wojciechmazur95/dotty:2024-12-10-test
options: --cpu-shares 4096
Expand Down Expand Up @@ -393,7 +403,9 @@ jobs:
run: cat community-build/dotty-community-build-deps || true

community_build_b:
runs-on: ${{ github.repository == 'scala/scala3' && 'Linux' || 'ubuntu-latest' }}
runs-on:
group: Default
labels: Linux
container:
image: wojciechmazur95/dotty:2024-12-10-test
options: --cpu-shares 4096
Expand Down Expand Up @@ -448,7 +460,9 @@ jobs:
run: cat community-build/dotty-community-build-deps || true

community_build_c:
runs-on: ${{ github.repository == 'scala/scala3' && 'Linux' || 'ubuntu-latest' }}
runs-on:
group: Default
labels: Linux
container:
image: wojciechmazur95/dotty:2024-12-10-test
options: --cpu-shares 4096
Expand Down Expand Up @@ -503,7 +517,9 @@ jobs:
run: cat community-build/dotty-community-build-deps || true

test_sbt:
runs-on: ${{ github.repository == 'scala/scala3' && 'Linux' || 'ubuntu-latest' }}
runs-on:
group: Default
labels: Linux
container:
image: wojciechmazur95/dotty:2024-12-10-test
options: --cpu-shares 4096
Expand Down Expand Up @@ -547,7 +563,9 @@ jobs:
run: ./project/scripts/sbt "sbt-test/scripted; sbt-community-build/scripted"

test_java8:
runs-on: ${{ github.repository == 'scala/scala3' && 'Linux' || 'ubuntu-latest' }}
runs-on:
group: Default
labels: Linux
container:
image: wojciechmazur95/dotty:2024-12-10-test
options: --cpu-shares 4096
Expand Down Expand Up @@ -606,7 +624,9 @@ jobs:
./project/scripts/sbt ";sjsSandbox/run ;sjsSandbox/test ;sjsJUnitTests/test ;set sjsJUnitTests/scalaJSLinkerConfig ~= switchToESModules ;sjsJUnitTests/test ;sjsCompilerTests/test"
publish_nightly:
runs-on: ${{ github.repository == 'scala/scala3' && 'Linux' || 'ubuntu-latest' }}
runs-on:
group: Default
labels: Linux
container:
image: wojciechmazur95/dotty:2024-12-10-test
options: --cpu-shares 4096
Expand Down Expand Up @@ -676,7 +696,9 @@ jobs:
./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonatypeBundleRelease"
nightly_documentation:
runs-on: ${{ github.repository == 'scala/scala3' && 'Linux' || 'ubuntu-latest' }}
runs-on:
group: Default
labels: Linux
container:
image: wojciechmazur95/dotty:2024-12-10-test
options: --cpu-shares 4096
Expand Down Expand Up @@ -720,7 +742,9 @@ jobs:
publish_release:
permissions:
contents: write # for actions/create-release to create a release
runs-on: ${{ github.repository == 'scala/scala3' && 'Linux' || 'ubuntu-latest' }}
runs-on:
group: Default
labels: Linux
container:
image: wojciechmazur95/dotty:2024-12-10-test
options: --cpu-shares 4096
Expand Down Expand Up @@ -1129,7 +1153,9 @@ jobs:


open_issue_on_failure:
runs-on: ${{ github.repository == 'scala/scala3' && 'Linux' || 'ubuntu-latest' }}
runs-on:
group: Default
labels: Linux
container:
image: wojciechmazur95/dotty:2024-12-10-test
needs: [nightly_documentation, test_windows_full]
Expand Down

0 comments on commit 3d59b83

Please sign in to comment.