|
5 | 5 | branches: [ master ] |
6 | 6 |
|
7 | 7 | jobs: |
8 | | - build: |
| 8 | + build-jvm: |
| 9 | + runs-on: ubuntu-22.04 |
| 10 | + name: Sjsonnet jvm build |
| 11 | + steps: |
| 12 | + - uses: actions/checkout@v6 |
| 13 | + - name: Set up JDK 21 |
| 14 | + uses: actions/setup-java@v5 |
| 15 | + with: |
| 16 | + java-version: 21 |
| 17 | + distribution: 'zulu' |
| 18 | + cache: sbt |
| 19 | + - uses: sbt/setup-sbt@v1 |
| 20 | + - name: Cache Coursier cache |
| 21 | + uses: coursier/cache-action@90c37294538be80a558fd665531fcdc2b467b475 # 8.1.0 |
| 22 | + - name: Check Formatting |
| 23 | + run: ./mill "_.jvm[_].__.checkFormat" |
| 24 | + - name: Run mill tests |
| 25 | + timeout-minutes: 15 |
| 26 | + run: ./mill "_.jvm[_].__.test" |
| 27 | + - name: Run sbt tests |
| 28 | + timeout-minutes: 15 |
| 29 | + run: sbt test |
| 30 | + build-graal: |
| 31 | + runs-on: ubuntu-22.04 |
| 32 | + name: Sjsonnet Graal Native build |
| 33 | + steps: |
| 34 | + - uses: actions/checkout@v6 |
| 35 | + - name: Set up JDK 21 |
| 36 | + uses: actions/setup-java@v5 |
| 37 | + with: |
| 38 | + java-version: 21 |
| 39 | + distribution: 'zulu' |
| 40 | + - name: Cache Coursier cache |
| 41 | + uses: coursier/cache-action@90c37294538be80a558fd665531fcdc2b467b475 # 8.1.0 |
| 42 | + - name: Run Native Image Test Suites |
| 43 | + timeout-minutes: 15 |
| 44 | + run: sjsonnet/test/graalvm/run_test_suites.py |
| 45 | + build-other: |
9 | 46 | runs-on: ubuntu-22.04 |
10 | 47 | strategy: |
11 | 48 | fail-fast: false |
12 | 49 | matrix: |
13 | | - lang: ['jvm', 'js', 'wasm', 'native'] |
14 | | - java: ['21', '25'] |
15 | | - name: Sjsonnet build for ${{ matrix.lang }} on JDK ${{ matrix.java }} |
| 50 | + lang: ['js', 'wasm', 'native'] |
| 51 | + name: Sjsonnet ${{ matrix.lang }} build |
16 | 52 | steps: |
17 | 53 | - uses: actions/checkout@v6 |
18 | | - - name: Set up JDK ${{ matrix.java }} |
| 54 | + - name: Set up JDK 21 |
19 | 55 | uses: actions/setup-java@v5 |
20 | 56 | with: |
21 | | - java-version: ${{ matrix.java }} |
| 57 | + java-version: 21 |
22 | 58 | distribution: 'zulu' |
23 | 59 | cache: sbt |
24 | 60 | - uses: sbt/setup-sbt@v1 |
|
31 | 67 | uses: coursier/cache-action@90c37294538be80a558fd665531fcdc2b467b475 # 8.1.0 |
32 | 68 | - name: Check Formatting |
33 | 69 | run: ./mill _.${{ matrix.lang }}[_].__.checkFormat |
34 | | - - name: Compile with mill |
35 | | - timeout-minutes: 15 |
36 | | - run: ./mill _.${{ matrix.lang }}[_].__.compile |
37 | 70 | - name: Run mill tests for ${{ matrix.lang }} |
38 | | - run: ./mill _.${{ matrix.lang }}[_].__.test |
39 | | - - name: Compile with sbt |
40 | | - timeout-minutes: 15 |
41 | | - if: ${{ matrix.lang == 'jvm' }} |
42 | | - run: sbt compile bench/compile bench/jmh:compile |
43 | | - - name: Run sbt tests |
44 | 71 | timeout-minutes: 15 |
45 | | - if: ${{ matrix.lang == 'jvm' }} |
46 | | - run: sbt test |
47 | | - - name: Run Native Image Test Suites |
48 | | - timeout-minutes: 30 |
49 | | - if: ${{ (matrix.lang == 'jvm') && (matrix.java == '25') }} |
50 | | - run: sjsonnet/test/graalvm/run_test_suites.py |
| 72 | + run: ./mill _.${{ matrix.lang }}[_].__.test |
0 commit comments