7 - "yosql-converters/**"
18 - "yosql-converters/**"
20 - "yosql-internals/**"
33 runs-on: ubuntu-latest
36 name: Clone Git Repository
37 uses: actions/checkout@v2.3.4
40 uses: actions/setup-java@v2
42 java-version: ${{ env.JAVA_VERSION }}
43 java-package: ${{ env.JAVA_PACKAGE }}
44 architecture: ${{ env.JAVA_ARCH }}
45 distribution: ${{ env.JAVA_DISTRO }}
47 name: Cache Maven Repository
48 uses: actions/cache@v2.1.5
50 path: ~/.m2/repository
51 key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
53 ${{ runner.os }}-maven-
56 run: mvn --batch-mode install
59 run: cd ./yosql-examples/yosql-examples-gradle/ && ./gradlew build
62 runs-on: ubuntu-latest
66 benchmark: [codegen, jdbc]
69 name: Clone Git Repository
70 uses: actions/checkout@v2.3.4
73 uses: actions/setup-java@v2
75 java-version: ${{ env.JAVA_VERSION }}
76 java-package: ${{ env.JAVA_PACKAGE }}
77 architecture: ${{ env.JAVA_ARCH }}
78 distribution: ${{ env.JAVA_DISTRO }}
80 name: Cache Maven Repository
81 uses: actions/cache@v2.1.5
83 path: ~/.m2/repository
84 key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
86 ${{ runner.os }}-maven-
88 name: Run Benchmark [${{ matrix.benchmark }}]
89 run: mvn --batch-mode --projects yosql-benchmarks/yosql-benchmarks-${{ matrix.benchmark }} --also-make --activate-profiles benchmarks verify -Dorg.slf4j.simpleLogger.log.yosql=warn -DskipTests 2>&1 1> build.log
90 - id: upload-benchmark
91 name: Upload Benchmark Results
92 uses: actions/upload-artifact@v2
94 name: benchmark-${{ matrix.benchmark }}
95 path: ./yosql-benchmarks/yosql-benchmarks-${{ matrix.benchmark }}/target/benchmark/yosql-benchmarks-${{ matrix.benchmark }}.json