Skip to content

Commit 3ccaacb

Browse files
committed
[do not merge] test on additional JDKs
1 parent c9bf3ab commit 3ccaacb

File tree

1 file changed

+168
-0
lines changed

1 file changed

+168
-0
lines changed

.github/workflows/ci.yaml

+168
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,174 @@ jobs:
463463
./project/scripts/cmdTests
464464
./project/scripts/bootstrappedOnlyCmdTests
465465
466+
test_java11:
467+
runs-on: [self-hosted, Linux]
468+
container:
469+
image: lampepfl/dotty:2021-03-22
470+
options: --cpu-shares 4096
471+
volumes:
472+
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
473+
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
474+
- ${{ github.workspace }}/../../cache/general:/root/.cache
475+
476+
if: "(
477+
github.event_name == 'pull_request'
478+
&& !contains(github.event.pull_request.body, '[skip ci]')
479+
&& contains(github.event.pull_request.body, '[test_java11]')
480+
)"
481+
482+
steps:
483+
- name: Install JDK 11
484+
run: apt-get update && apt-get install -y openjdk-11-jdk-headless
485+
486+
- name: Set JDK 11 as default
487+
run: echo "/usr/lib/jvm/java-11-openjdk-amd64/bin" >> $GITHUB_PATH
488+
489+
- name: Reset existing repo
490+
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
491+
492+
- name: Checkout cleanup script
493+
uses: actions/checkout@v2
494+
495+
- name: Cleanup
496+
run: .github/workflows/cleanup.sh
497+
498+
- name: Git Checkout
499+
uses: actions/checkout@v2
500+
501+
- name: Add SBT proxy repositories
502+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
503+
504+
- name: Test
505+
run: |
506+
./project/scripts/sbt "scala3-bootstrapped/compile; scala3-bootstrapped/testOnly dotty.tools.repl.Disassemb* dotty.tools.repl.Javap* dotty.tools.repl.Asmp*"
507+
508+
test_java15:
509+
runs-on: [self-hosted, Linux]
510+
container:
511+
image: lampepfl/dotty:2021-03-22
512+
options: --cpu-shares 4096
513+
volumes:
514+
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
515+
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
516+
- ${{ github.workspace }}/../../cache/general:/root/.cache
517+
518+
if: "(
519+
github.event_name == 'pull_request'
520+
&& !contains(github.event.pull_request.body, '[skip ci]')
521+
&& contains(github.event.pull_request.body, '[test_java15]')
522+
)"
523+
524+
steps:
525+
- name: Install JDK 15
526+
run: apt-get update && apt-get install -y openjdk-15-jdk-headless
527+
528+
- name: Set JDK 15 as default
529+
run: echo "/usr/lib/jvm/java-15-openjdk-amd64/bin" >> $GITHUB_PATH
530+
531+
- name: Reset existing repo
532+
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
533+
534+
- name: Checkout cleanup script
535+
uses: actions/checkout@v2
536+
537+
- name: Cleanup
538+
run: .github/workflows/cleanup.sh
539+
540+
- name: Git Checkout
541+
uses: actions/checkout@v2
542+
543+
- name: Add SBT proxy repositories
544+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
545+
546+
- name: Test
547+
run: |
548+
./project/scripts/sbt "scala3-bootstrapped/compile; scala3-bootstrapped/testOnly dotty.tools.repl.Disassemb* dotty.tools.repl.Javap* dotty.tools.repl.Asmp*"
549+
550+
test_java17:
551+
runs-on: [self-hosted, Linux]
552+
container:
553+
image: lampepfl/dotty:2021-03-22
554+
options: --cpu-shares 4096
555+
volumes:
556+
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
557+
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
558+
- ${{ github.workspace }}/../../cache/general:/root/.cache
559+
560+
if: "(
561+
github.event_name == 'pull_request'
562+
&& !contains(github.event.pull_request.body, '[skip ci]')
563+
&& contains(github.event.pull_request.body, '[test_java17]')
564+
)"
565+
566+
steps:
567+
- name: Install JDK 17
568+
run: apt-get update && apt-get install -y openjdk-17-jdk-headless
569+
570+
- name: Set JDK 17 as default
571+
run: echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
572+
573+
- name: Reset existing repo
574+
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
575+
576+
- name: Checkout cleanup script
577+
uses: actions/checkout@v2
578+
579+
- name: Cleanup
580+
run: .github/workflows/cleanup.sh
581+
582+
- name: Git Checkout
583+
uses: actions/checkout@v2
584+
585+
- name: Add SBT proxy repositories
586+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
587+
588+
- name: Test
589+
run: |
590+
./project/scripts/sbt "scala3-bootstrapped/compile; scala3-bootstrapped/testOnly dotty.tools.repl.Disassemb* dotty.tools.repl.Javap* dotty.tools.repl.Asmp*"
591+
592+
test_java18:
593+
runs-on: [self-hosted, Linux]
594+
container:
595+
image: lampepfl/dotty:2021-03-22
596+
options: --cpu-shares 4096
597+
volumes:
598+
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
599+
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
600+
- ${{ github.workspace }}/../../cache/general:/root/.cache
601+
602+
if: "(
603+
github.event_name == 'pull_request'
604+
&& !contains(github.event.pull_request.body, '[skip ci]')
605+
&& contains(github.event.pull_request.body, '[test_java18]')
606+
)"
607+
608+
steps:
609+
- name: Install JDK 18
610+
run: curl https://download.java.net/java/GA/jdk18/43f95e8614114aeaa8e8a5fcf20a682d/36/GPL/openjdk-18_linux-x64_bin.tar.gz | tar -C /usr/lib/jvm -xzf -
611+
612+
- name: Set JDK 18 as default
613+
run: echo "/usr/lib/jvm/jdk-18/bin" >> $GITHUB_PATH
614+
615+
- name: Reset existing repo
616+
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
617+
618+
- name: Checkout cleanup script
619+
uses: actions/checkout@v2
620+
621+
- name: Cleanup
622+
run: .github/workflows/cleanup.sh
623+
624+
- name: Git Checkout
625+
uses: actions/checkout@v2
626+
627+
- name: Add SBT proxy repositories
628+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
629+
630+
- name: Test
631+
run: |
632+
./project/scripts/sbt "scala3-bootstrapped/compile; scala3-bootstrapped/testOnly dotty.tools.repl.Disassemb* dotty.tools.repl.Javap* dotty.tools.repl.Asmp*"
633+
466634
publish_nightly:
467635
runs-on: [self-hosted, Linux]
468636
container:

0 commit comments

Comments
 (0)