9 name: Install Project Artifacts
10 runs-on: ubuntu-latest
13 name: Clone Git Repository
14 uses: actions/checkout@v2
17 uses: actions/setup-java@v1
23 name: Cache Maven Repository
24 uses: actions/cache@v1
26 path: ~/.m2/repository
27 key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
29 ${{ runner.os }}-maven-
32 run: mvn --batch-mode --settings $GITHUB_WORKSPACE/build/settings.xml install
34 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37 runs-on: ubuntu-latest
41 benchmark: ["codegen", "jdbc"]
44 name: Clone Git Repository
45 uses: actions/checkout@v2
48 uses: actions/setup-java@v1
54 name: Cache Maven Repository
55 uses: actions/cache@v1
57 path: ~/.m2/repository
58 key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
60 ${{ runner.os }}-maven-
62 name: Run Benchmark [${{ matrix.benchmark }}]
63 run: mvn --batch-mode --settings $GITHUB_WORKSPACE/build/settings.xml --projects yosql-benchmarks/yosql-benchmarks-${{ matrix.benchmark }} --also-make --activate-profiles benchmarks verify -Dorg.slf4j.simpleLogger.log.yosql=warn -DskipTests
65 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67 name: Upload Benchmark Results
68 uses: actions/upload-artifact@v2
70 name: benchmark-${{ matrix.benchmark }}
71 path: ./yosql-benchmarks/yosql-benchmarks-${{ matrix.benchmark }}/target/benchmark/yosql-benchmarks-${{ matrix.benchmark }}.json
74 runs-on: ubuntu-latest
76 if: ${{ github.ref == 'refs/heads/main' }}
79 name: Clone Git Repository
80 uses: actions/checkout@v2
83 uses: peaceiris/actions-hugo@v2
86 - id: download-codegen
87 name: Download Codegen Results
88 uses: actions/download-artifact@v2
90 name: benchmark-codegen
91 path: ./yosql-website/content/benchmarks/current/yosql-benchmarks-codegen.json
93 name: Download JDBC Results
94 uses: actions/download-artifact@v2
97 path: ./yosql-website/content/benchmarks/current/yosql-benchmarks-jdbc.json
100 run: hugo --minify --i18n-warnings --path-warnings --source yosql-website
103 uses: peaceiris/actions-gh-pages@v3
105 github_token: ${{ secrets.GITHUB_TOKEN }}
106 publish_dir: ./yosql-website/public
108 cname: yosql.projects.metio.wtf