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 2>&1 1> build.log
65 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66 - id: upload-benchmark
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
87 name: Download Benchmarks Results
88 uses: actions/download-artifact@v2
89 - id: copy-codegen-results
90 name: Copy Codegen Results
91 run: cp ./benchmark-codegen/yosql-benchmarks-codegen.json ./yosql-website/content/benchmarks/current/yosql-benchmarks-codegen.json
92 - id: copy-jdbc-results
93 name: Copy JDBC Results
94 run: cp ./benchmark-jdbc/yosql-benchmarks-jdbc.json ./yosql-website/content/benchmarks/current/yosql-benchmarks-jdbc.json
97 run: hugo --minify --i18n-warnings --path-warnings --source yosql-website
100 uses: peaceiris/actions-gh-pages@v3
102 github_token: ${{ secrets.GITHUB_TOKEN }}
103 publish_dir: ./yosql-website/public
105 cname: yosql.projects.metio.wtf