|
| 1 | +name: Benchmark Build-Time |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + paths: |
| 6 | + - '**/workflows/*.yml' |
| 7 | + - '**/java/**' |
| 8 | + - '*.java' |
| 9 | + - '*.gradle' |
| 10 | + - '*.properties' |
| 11 | + branches: |
| 12 | + - master |
| 13 | + |
| 14 | +jobs: |
| 15 | + micronaut-application: |
| 16 | + runs-on: ubuntu-latest |
| 17 | + name: Micronaut Application |
| 18 | + |
| 19 | + steps: |
| 20 | + - uses: actions/checkout@v3 |
| 21 | + - name: Set up JDK |
| 22 | + uses: actions/setup-java@v3 |
| 23 | + with: |
| 24 | + java-version: '17' |
| 25 | + distribution: 'adopt' |
| 26 | + |
| 27 | + - name: Build Jar |
| 28 | + run: './gradlew micronaut-application-helloworld:shadowjar' |
| 29 | + - name: Build GraalVM |
| 30 | + run: 'docker build -t micronaut-application-helloworld .' |
| 31 | + |
| 32 | + |
| 33 | + micronaut-function: |
| 34 | + runs-on: ubuntu-latest |
| 35 | + name: Micronaut Function |
| 36 | + |
| 37 | + steps: |
| 38 | + - uses: actions/checkout@v3 |
| 39 | + - name: Set up JDK |
| 40 | + uses: actions/setup-java@v3 |
| 41 | + with: |
| 42 | + java-version: '17' |
| 43 | + distribution: 'adopt' |
| 44 | + |
| 45 | + - name: Build Jar |
| 46 | + run: './gradlew micronaut-function-helloworld:shadowJar' |
| 47 | + - name: Build GraalVM |
| 48 | + run: 'docker build -t micronaut-function-helloworld .' |
| 49 | + |
| 50 | + |
| 51 | + spring: |
| 52 | + runs-on: ubuntu-latest |
| 53 | + name: Spring |
| 54 | + |
| 55 | + steps: |
| 56 | + - uses: actions/checkout@v3 |
| 57 | + - name: Set up JDK |
| 58 | + uses: actions/setup-java@v3 |
| 59 | + with: |
| 60 | + java-version: '17' |
| 61 | + distribution: 'adopt' |
| 62 | + |
| 63 | + - name: Build Jar & GraalVM |
| 64 | + run: './gradlew spring-helloworld:bootBuildImage' |
| 65 | + |
| 66 | + |
| 67 | + quarkus: |
| 68 | + runs-on: ubuntu-latest |
| 69 | + name: Quarkus |
| 70 | + |
| 71 | + steps: |
| 72 | + - uses: actions/checkout@v3 |
| 73 | + - name: Set up JDK |
| 74 | + uses: actions/setup-java@v3 |
| 75 | + with: |
| 76 | + java-version: '17' |
| 77 | + distribution: 'adopt' |
| 78 | + |
| 79 | + - name: Build Jar & GraalVM |
| 80 | + run: './gradlew quarkus-helloworld:build -Dquarkus.package.type=native -Dquarkus.native.container-build=true' |
| 81 | + |
| 82 | + |
| 83 | + simplelambda: |
| 84 | + runs-on: ubuntu-latest |
| 85 | + name: SimpleLambda |
| 86 | + |
| 87 | + steps: |
| 88 | + - uses: actions/checkout@v3 |
| 89 | + - name: Set up JDK |
| 90 | + uses: actions/setup-java@v3 |
| 91 | + with: |
| 92 | + java-version: '17' |
| 93 | + distribution: 'adopt' |
| 94 | + |
| 95 | + - name: Build Jar |
| 96 | + run: './gradlew simplelambda-helloworld:shadowJar' |
| 97 | + - name: Build GraalVM |
| 98 | + run: 'docker build -t simplelambda-helloworld .' |
| 99 | + |
| 100 | + |
| 101 | + simplelambda-micronaut: |
| 102 | + runs-on: ubuntu-latest |
| 103 | + name: SimpleLambda Micronaut |
| 104 | + |
| 105 | + steps: |
| 106 | + - uses: actions/checkout@v3 |
| 107 | + - name: Set up JDK |
| 108 | + uses: actions/setup-java@v3 |
| 109 | + with: |
| 110 | + java-version: '17' |
| 111 | + distribution: 'adopt' |
| 112 | + |
| 113 | + - name: Build Jar |
| 114 | + run: './gradlew simplelambda-micronaut-helloworld:shadowJar' |
| 115 | + - name: Build GraalVM |
| 116 | + run: 'docker build -t simplelambda-micronaut-helloworld .' |
0 commit comments