From 57c2e14d6c826a33b3a543c4a96a76bf914324fe Mon Sep 17 00:00:00 2001 From: Darcy Clarke Date: Tue, 21 Jan 2025 03:27:58 +0000 Subject: [PATCH] fix: setup --- .github/workflows/benchmark.yaml | 43 ++++++++++++++++++++++++++------ scripts/setup.sh | 2 ++ 2 files changed, 37 insertions(+), 8 deletions(-) diff --git a/.github/workflows/benchmark.yaml b/.github/workflows/benchmark.yaml index 09df993..3934ee0 100644 --- a/.github/workflows/benchmark.yaml +++ b/.github/workflows/benchmark.yaml @@ -22,8 +22,8 @@ jobs: - name: Upload Benchmark Results uses: actions/upload-artifact@v4 with: - name: benchmark-results - path: ./results/ + name: task-benchmark-results + path: ./results/run/ next: name: 'Benchmark Next Project' runs-on: ubuntu-latest @@ -42,8 +42,8 @@ jobs: - name: Upload Benchmark Results uses: actions/upload-artifact@v4 with: - name: benchmark-results - path: ./results/ + name: next-benchmark-results + path: ./results/next/ astro: name: 'Benchmark Astro Project' runs-on: ubuntu-latest @@ -62,8 +62,8 @@ jobs: - name: Upload Benchmark Results uses: actions/upload-artifact@v4 with: - name: benchmark-results - path: ./results/ + name: astro-benchmark-results + path: ./results/astro/ svelte: name: 'Benchmark Svelte Project' runs-on: ubuntu-latest @@ -82,8 +82,8 @@ jobs: - name: Upload Benchmark Results uses: actions/upload-artifact@v4 with: - name: benchmark-results - path: ./results/ + name: svelete-benchmark-results + path: ./results/svelte/ vue: name: 'Benchmark Vue Project' runs-on: ubuntu-latest @@ -101,6 +101,33 @@ jobs: bash ./scripts/install.sh vue - name: Upload Benchmark Results uses: actions/upload-artifact@v4 + with: + name: vue-benchmark-results + path: ./results/vue/ + + # make a chart with the results + chart: + name: 'Chart the Benchmark Results' + runs-on: ubuntu-latest + needs: [task, next, astro, svelte, vue] + steps: + - uses: actions/download-artifact@v4 with: name: benchmark-results path: ./results/ + - name: Install Node + uses: actions/setup-node@v2 + with: + node-version: '22' + - name: Install & Setup Tools + run: | + bash ./scripts/setup.sh + - name: Generate Chart + run: | + bash ./scripts/chart.sh + - name: Upload Chart + uses: actions/upload-artifact@v4 + with: + name: benchmark-chart + path: ./results/chart/ + \ No newline at end of file diff --git a/scripts/setup.sh b/scripts/setup.sh index 36af07a..61b4c5a 100644 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Environment Configuration COREPACK_ENABLE_STRICT=0 COREPACK_ENABLE_AUTO_PIN=0