Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e0a0341

Browse files
committedJun 24, 2021
[do not merge] test on additional JDKs
1 parent 53568e1 commit e0a0341

File tree

1 file changed

+126
-0
lines changed

1 file changed

+126
-0
lines changed
 

‎.github/workflows/ci.yaml

+126
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,132 @@ jobs:
406406
./project/scripts/sbt ";scala3-bootstrapped/compile ;scala3-bootstrapped/test;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test;sjsCompilerTests/test ;sbt-test/scripted scala2-compat/* ;configureIDE ;stdlib-bootstrapped/test:run ;stdlib-bootstrapped-tasty-tests/test"
407407
./project/scripts/bootstrapCmdTests
408408
409+
test_java11:
410+
runs-on: [self-hosted, Linux]
411+
container:
412+
image: lampepfl/dotty:2021-03-22
413+
options: --cpu-shares 4096
414+
volumes:
415+
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
416+
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
417+
- ${{ github.workspace }}/../../cache/general:/root/.cache
418+
419+
if: "(
420+
github.event_name == 'pull_request'
421+
&& !contains(github.event.pull_request.body, '[skip ci]')
422+
&& contains(github.event.pull_request.body, '[test_java11]')
423+
)"
424+
425+
steps:
426+
- name: Install JDK 11
427+
run: apt-get update && apt-get install -y openjdk-11-jdk-headless
428+
429+
- name: Set JDK 11 as default
430+
run: echo "/usr/lib/jvm/java-11-openjdk-amd64/bin" >> $GITHUB_PATH
431+
432+
- name: Reset existing repo
433+
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
434+
435+
- name: Checkout cleanup script
436+
uses: actions/checkout@v2
437+
438+
- name: Cleanup
439+
run: .github/workflows/cleanup.sh
440+
441+
- name: Git Checkout
442+
uses: actions/checkout@v2
443+
444+
- name: Add SBT proxy repositories
445+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
446+
447+
- name: Test
448+
run: |
449+
./project/scripts/sbt "scala3-bootstrapped/compile; scala3-bootstrapped/testOnly dotty.tools.repl.Disassemb* dotty.tools.repl.Javap* dotty.tools.repl.Asmp*"
450+
451+
test_java15:
452+
runs-on: [self-hosted, Linux]
453+
container:
454+
image: lampepfl/dotty:2021-03-22
455+
options: --cpu-shares 4096
456+
volumes:
457+
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
458+
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
459+
- ${{ github.workspace }}/../../cache/general:/root/.cache
460+
461+
if: "(
462+
github.event_name == 'pull_request'
463+
&& !contains(github.event.pull_request.body, '[skip ci]')
464+
&& contains(github.event.pull_request.body, '[test_java15]')
465+
)"
466+
467+
steps:
468+
- name: Install JDK 15
469+
run: apt-get update && apt-get install -y openjdk-15-jdk-headless
470+
471+
- name: Set JDK 15 as default
472+
run: echo "/usr/lib/jvm/java-15-openjdk-amd64/bin" >> $GITHUB_PATH
473+
474+
- name: Reset existing repo
475+
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
476+
477+
- name: Checkout cleanup script
478+
uses: actions/checkout@v2
479+
480+
- name: Cleanup
481+
run: .github/workflows/cleanup.sh
482+
483+
- name: Git Checkout
484+
uses: actions/checkout@v2
485+
486+
- name: Add SBT proxy repositories
487+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
488+
489+
- name: Test
490+
run: |
491+
./project/scripts/sbt "scala3-bootstrapped/compile; scala3-bootstrapped/testOnly dotty.tools.repl.Disassemb* dotty.tools.repl.Javap* dotty.tools.repl.Asmp*"
492+
493+
test_java17:
494+
runs-on: [self-hosted, Linux]
495+
container:
496+
image: lampepfl/dotty:2021-03-22
497+
options: --cpu-shares 4096
498+
volumes:
499+
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
500+
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
501+
- ${{ github.workspace }}/../../cache/general:/root/.cache
502+
503+
if: "(
504+
github.event_name == 'pull_request'
505+
&& !contains(github.event.pull_request.body, '[skip ci]')
506+
&& contains(github.event.pull_request.body, '[test_java17]')
507+
)"
508+
509+
steps:
510+
- name: Install JDK 17
511+
run: curl https://download.java.net/java/early_access/jdk17/27/GPL/openjdk-17-ea+27_linux-x64_bin.tar.gz | tar -C /usr/lib/jvm -xzf -
512+
513+
- name: Set JDK 17 as default
514+
run: echo "/usr/lib/jvm/jdk-17/bin" >> $GITHUB_PATH
515+
516+
- name: Reset existing repo
517+
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
518+
519+
- name: Checkout cleanup script
520+
uses: actions/checkout@v2
521+
522+
- name: Cleanup
523+
run: .github/workflows/cleanup.sh
524+
525+
- name: Git Checkout
526+
uses: actions/checkout@v2
527+
528+
- name: Add SBT proxy repositories
529+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
530+
531+
- name: Test
532+
run: |
533+
./project/scripts/sbt "scala3-bootstrapped/compile; scala3-bootstrapped/testOnly dotty.tools.repl.Disassemb* dotty.tools.repl.Javap* dotty.tools.repl.Asmp*"
534+
409535
publish_nightly:
410536
runs-on: [self-hosted, Linux]
411537
container:

0 commit comments

Comments
 (0)
Please sign in to comment.