|
| 1 | +name: Dotty CI |
| 2 | + |
| 3 | +on: [push, pull_request] |
| 4 | + |
| 5 | +jobs: |
| 6 | + test: |
| 7 | + runs-on: ubuntu-latest |
| 8 | + container: akmetiuk/dotty:2020-02-12 |
| 9 | + |
| 10 | + steps: |
| 11 | + - name: Git Checkout |
| 12 | + uses: actions/checkout@v2 |
| 13 | + |
| 14 | + - name: Cache Ivy |
| 15 | + |
| 16 | + with: |
| 17 | + path: /root/.ivy2/cache |
| 18 | + key: ${{ runner.os }}-ivy-${{ hashFiles('**/build.sbt') }} |
| 19 | + restore-keys: ${{ runner.os }}-ivy- |
| 20 | + |
| 21 | + - name: Cache SBT |
| 22 | + |
| 23 | + with: |
| 24 | + path: /root/.sbt |
| 25 | + key: ${{ runner.os }}-sbt-${{ hashFiles('project/**') }} |
| 26 | + restore-keys: ${{ runner.os }}-sbt- |
| 27 | + |
| 28 | + - name: Cache Coursier and Mill |
| 29 | + |
| 30 | + with: |
| 31 | + path: /root/.cache |
| 32 | + key: ${{ runner.os }}-general-${{ hashFiles('**/build.sbt') }} |
| 33 | + restore-keys: ${{ runner.os }}-general- |
| 34 | + |
| 35 | + - name: Test |
| 36 | + run: | |
| 37 | + ./project/scripts/sbt ";compile ;test" |
| 38 | + ./project/scripts/cmdTests |
| 39 | +
|
| 40 | + test_bootstrapped: |
| 41 | + runs-on: ubuntu-latest |
| 42 | + container: akmetiuk/dotty:2020-02-12 |
| 43 | + |
| 44 | + steps: |
| 45 | + - name: Git Checkout |
| 46 | + uses: actions/checkout@v2 |
| 47 | + |
| 48 | + - name: Cache Ivy |
| 49 | + |
| 50 | + with: |
| 51 | + path: /root/.ivy2/cache |
| 52 | + key: ${{ runner.os }}-ivy-${{ hashFiles('**/build.sbt') }} |
| 53 | + restore-keys: ${{ runner.os }}-ivy- |
| 54 | + |
| 55 | + - name: Cache SBT |
| 56 | + |
| 57 | + with: |
| 58 | + path: /root/.sbt |
| 59 | + key: ${{ runner.os }}-sbt-${{ hashFiles('project/**') }} |
| 60 | + restore-keys: ${{ runner.os }}-sbt- |
| 61 | + |
| 62 | + - name: Cache Coursier and Mill |
| 63 | + |
| 64 | + with: |
| 65 | + path: /root/.cache |
| 66 | + key: ${{ runner.os }}-general-${{ hashFiles('**/build.sbt') }} |
| 67 | + restore-keys: ${{ runner.os }}-general- |
| 68 | + |
| 69 | + - name: Test |
| 70 | + run: | |
| 71 | + ./project/scripts/sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/test;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test ;configureIDE" |
| 72 | + ./project/scripts/bootstrapCmdTests |
| 73 | +
|
| 74 | + # community_build: |
| 75 | + # runs-on: ubuntu-latest |
| 76 | + # container: akmetiuk/dotty:2020-02-12 |
| 77 | + |
| 78 | + # steps: |
| 79 | + # - name: Git Checkout |
| 80 | + # uses: actions/checkout@v2 |
| 81 | + |
| 82 | + # - name: Cache Ivy |
| 83 | + |
| 84 | + # with: |
| 85 | + # path: /root/.ivy2/cache |
| 86 | + # key: ${{ runner.os }}-ivy-${{ hashFiles('**/build.sbt') }} |
| 87 | + # restore-keys: ${{ runner.os }}-ivy- |
| 88 | + |
| 89 | + # - name: Cache SBT |
| 90 | + |
| 91 | + # with: |
| 92 | + # path: /root/.sbt |
| 93 | + # key: ${{ runner.os }}-sbt-${{ hashFiles('project/**') }} |
| 94 | + # restore-keys: ${{ runner.os }}-sbt- |
| 95 | + |
| 96 | + # - name: Cache Coursier and Mill |
| 97 | + |
| 98 | + # with: |
| 99 | + # path: /root/.cache |
| 100 | + # key: ${{ runner.os }}-general-${{ hashFiles('**/build.sbt') }} |
| 101 | + # restore-keys: ${{ runner.os }}-general- |
| 102 | + |
| 103 | + # - name: Test |
| 104 | + # run: | |
| 105 | + # git submodule sync |
| 106 | + # git submodule update --init --recursive --jobs 7 |
| 107 | + # ./project/scripts/sbt community-build/test |
| 108 | + |
| 109 | + test_sbt: |
| 110 | + runs-on: ubuntu-latest |
| 111 | + container: akmetiuk/dotty:2020-02-12 |
| 112 | + if: github.event_name == 'push' && |
| 113 | + startsWith(github.event.ref, 'refs/tags/') |
| 114 | + |
| 115 | + steps: |
| 116 | + - name: Git Checkout |
| 117 | + uses: actions/checkout@v2 |
| 118 | + |
| 119 | + - name: Cache Ivy |
| 120 | + |
| 121 | + with: |
| 122 | + path: /root/.ivy2/cache |
| 123 | + key: ${{ runner.os }}-ivy-${{ hashFiles('**/build.sbt') }} |
| 124 | + restore-keys: ${{ runner.os }}-ivy- |
| 125 | + |
| 126 | + - name: Cache SBT |
| 127 | + |
| 128 | + with: |
| 129 | + path: /root/.sbt |
| 130 | + key: ${{ runner.os }}-sbt-${{ hashFiles('project/**') }} |
| 131 | + restore-keys: ${{ runner.os }}-sbt- |
| 132 | + |
| 133 | + - name: Cache Coursier and Mill |
| 134 | + |
| 135 | + with: |
| 136 | + path: /root/.cache |
| 137 | + key: ${{ runner.os }}-general-${{ hashFiles('**/build.sbt') }} |
| 138 | + restore-keys: ${{ runner.os }}-general- |
| 139 | + |
| 140 | + - name: Test |
| 141 | + run: ./project/scripts/sbt sbt-dotty/scripted |
| 142 | + |
| 143 | + test_java11: |
| 144 | + runs-on: ubuntu-latest |
| 145 | + container: akmetiuk/dotty:2020-02-12 |
| 146 | + if: github.event_name == 'push' && |
| 147 | + startsWith(github.event.ref, 'refs/tags/') |
| 148 | + |
| 149 | + steps: |
| 150 | + - name: Git Checkout |
| 151 | + uses: actions/checkout@v2 |
| 152 | + |
| 153 | + - name: Cache Ivy |
| 154 | + |
| 155 | + with: |
| 156 | + path: /root/.ivy2/cache |
| 157 | + key: ${{ runner.os }}-ivy-${{ hashFiles('**/build.sbt') }} |
| 158 | + restore-keys: ${{ runner.os }}-ivy- |
| 159 | + |
| 160 | + - name: Cache SBT |
| 161 | + |
| 162 | + with: |
| 163 | + path: /root/.sbt |
| 164 | + key: ${{ runner.os }}-sbt-${{ hashFiles('project/**') }} |
| 165 | + restore-keys: ${{ runner.os }}-sbt- |
| 166 | + |
| 167 | + - name: Cache Coursier and Mill |
| 168 | + |
| 169 | + with: |
| 170 | + path: /root/.cache |
| 171 | + key: ${{ runner.os }}-general-${{ hashFiles('**/build.sbt') }} |
| 172 | + restore-keys: ${{ runner.os }}-general- |
| 173 | + |
| 174 | + - name: Test |
| 175 | + run: | |
| 176 | + export PATH="/usr/lib/jvm/java-11-openjdk-amd64/bin:$PATH" |
| 177 | + ./project/scripts/sbt ";compile ;test" |
0 commit comments