From cceb7b0670c68ee5747d6d26f3e41b0046f4d3e4 Mon Sep 17 00:00:00 2001 From: Pedro Fontana Date: Mon, 8 Apr 2024 18:19:46 -0300 Subject: [PATCH] Revert "fix" This reverts commit 4ed1353cbdeb1d0db3356125cb7b41376f02bee6. --- .../workflows/hyper_threading_benchmarks.yml | 30 ++++++++----------- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/.github/workflows/hyper_threading_benchmarks.yml b/.github/workflows/hyper_threading_benchmarks.yml index 609d6faee7..1056984fad 100644 --- a/.github/workflows/hyper_threading_benchmarks.yml +++ b/.github/workflows/hyper_threading_benchmarks.yml @@ -35,62 +35,56 @@ jobs: cargo build --release -p hyper_threading mkdir -p ${{ github.workspace }}/artifacts cp target/release/hyper_threading ${{ github.workspace }}/artifacts/hyper_threading_pr - cp ./examples/hyper_threading/hyper-threading-workflow.sh ${{ github.workspace }}/artifacts/ - + cp ./examples/hyper_threading/hyper-threading-workflow.sh ${{ github.workspace }}/artifacts/hyper-threading-workflow.sh + - name: Upload PR Binary - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@master with: name: hyper_threading_pr_binary path: ${{ github.workspace }}/artifacts/hyper_threading_pr - name: Upload Workflow Script - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@master with: name: hyper_threading_workflow_script path: ${{ github.workspace }}/artifacts/hyper-threading-workflow.sh + - name: Checkout Main Branch uses: actions/checkout@v2 with: ref: 'main' - # Ensure to fetch the history for main branch and PR comparison, if needed - with: - fetch-depth: 0 - name: Compile Main Version run: | make cairo_bench_programs cargo build --release -p hyper_threading - mkdir -p ${{ github.workspace }}/artifacts # This might be redundant due to previous mkdir + mkdir -p ${{ github.workspace }}/artifacts cp target/release/hyper_threading ${{ github.workspace }}/artifacts/hyper_threading_main - name: Upload Main Binary - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@master with: name: hyper_threading_main_binary path: ${{ github.workspace }}/artifacts/hyper_threading_main - # Ensure all artifacts are downloaded in one step to prevent path issues - - name: Download All Artifacts - uses: actions/download-artifact@v2 + - name: Download Binaries and Script + uses: actions/download-artifact@master with: path: ${{ github.workspace }}/artifacts/ - - name: Display structure of downloaded files run: ls -R ${{ github.workspace }}/artifacts/ - name: Run Benchmarks - run: | - chmod +x ${{ github.workspace }}/artifacts/hyper-threading-workflow.sh - ${{ github.workspace }}/artifacts/hyper-threading-workflow.sh --show-output + run: source ${{ github.workspace }}/artifacts/hyper-threading-workflow.sh --show-output - name: Compare Results run: | echo "PR Results:" - cat ${{ github.workspace }}/artifacts/results_pr.txt + cat results_pr.txt - name: Upload Results uses: actions/upload-artifact@v2 with: name: benchmark-results - path: ${{ github.workspace }}/artifacts/results_pr.txt + path: results_pr.txt