Skip to content

Commit 4c57f07

Browse files
committed
[do not merge] test on additional JDKs
1 parent 775e675 commit 4c57f07

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,90 @@ jobs:
413413
./project/scripts/sbt ";scala3-bootstrapped/compile ;scala3-bootstrapped/test;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test;sjsCompilerTests/test ;sbt-dotty/scripted scala2-compat/* ;configureIDE ;stdlib-bootstrapped/test:run ;stdlib-bootstrapped-tasty-tests/test"
414414
./project/scripts/bootstrapCmdTests
415415
416+
test_java11:
417+
runs-on: [self-hosted, Linux]
418+
container:
419+
image: lampepfl/dotty:2021-03-22
420+
options: --cpu-shares 4096
421+
volumes:
422+
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
423+
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
424+
- ${{ github.workspace }}/../../cache/general:/root/.cache
425+
426+
if: "(
427+
github.event_name == 'pull_request'
428+
&& !contains(github.event.pull_request.body, '[skip ci]')
429+
&& contains(github.event.pull_request.body, '[test_java11]')
430+
)"
431+
432+
steps:
433+
- name: Install JDK 11
434+
run: apt-get update && apt-get install -y openjdk-11-jdk-headless
435+
436+
- name: Set JDK 11 as default
437+
run: echo "/usr/lib/jvm/java-11-openjdk-amd64/bin" >> $GITHUB_PATH
438+
439+
- name: Reset existing repo
440+
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
441+
442+
- name: Checkout cleanup script
443+
uses: actions/checkout@v2
444+
445+
- name: Cleanup
446+
run: .github/workflows/cleanup.sh
447+
448+
- name: Git Checkout
449+
uses: actions/checkout@v2
450+
451+
- name: Add SBT proxy repositories
452+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
453+
454+
- name: Test
455+
run: |
456+
./project/scripts/sbt "scala3-bootstrapped/compile; scala3-bootstrapped/testOnly dotty.tools.repl.Javap*"
457+
458+
test_java15:
459+
runs-on: [self-hosted, Linux]
460+
container:
461+
image: lampepfl/dotty:2021-03-22
462+
options: --cpu-shares 4096
463+
volumes:
464+
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
465+
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
466+
- ${{ github.workspace }}/../../cache/general:/root/.cache
467+
468+
if: "(
469+
github.event_name == 'pull_request'
470+
&& !contains(github.event.pull_request.body, '[skip ci]')
471+
&& contains(github.event.pull_request.body, '[test_java15]')
472+
)"
473+
474+
steps:
475+
- name: Install JDK 15
476+
run: apt-get update && apt-get install -y openjdk-15-jdk-headless
477+
478+
- name: Set JDK 15 as default
479+
run: echo "/usr/lib/jvm/java-15-openjdk-amd64/bin" >> $GITHUB_PATH
480+
481+
- name: Reset existing repo
482+
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
483+
484+
- name: Checkout cleanup script
485+
uses: actions/checkout@v2
486+
487+
- name: Cleanup
488+
run: .github/workflows/cleanup.sh
489+
490+
- name: Git Checkout
491+
uses: actions/checkout@v2
492+
493+
- name: Add SBT proxy repositories
494+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
495+
496+
- name: Test
497+
run: |
498+
./project/scripts/sbt "scala3-bootstrapped/compile; scala3-bootstrapped/testOnly dotty.tools.repl.Javap*"
499+
416500
publish_nightly:
417501
runs-on: [self-hosted, Linux]
418502
container:

0 commit comments

Comments
 (0)