Skip to content

Commit

Permalink
github.workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Fontana authored and Pedro Fontana committed Apr 8, 2024
1 parent e16fba8 commit ad99511
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/hyper_threading_benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,21 @@ jobs:
run: |
make cairo_bench_programs
cargo build --release -p hyper_threading
cp target/release/hyper_threading ./hyper_threading_pr
cp ./examples/hyper_threading/hyper-threading-workflow.sh ./hyper-threading-workflow.sh
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/hyper-threading-workflow.sh
- name: Upload PR Binary
uses: actions/upload-artifact@master
with:
name: hyper_threading_pr_binary
path: ./hyper_threading_pr
path: ${{ github.workspace }}/artifacts/hyper_threading_pr

- name: Upload Workflow Script
uses: actions/upload-artifact@master
with:
name: hyper_threading_workflow_script
path: ./hyper-threading-workflow.sh
path: ${{ github.workspace }}/artifacts/hyper-threading-workflow.sh


- name: Checkout Main Branch
Expand All @@ -58,26 +59,24 @@ jobs:
run: |
make cairo_bench_programs
cargo build --release -p hyper_threading
cp target/release/hyper_threading ./hyper_threading_main
mkdir -p ${{ github.workspace }}/artifacts
cp target/release/hyper_threading ${{ github.workspace }}/artifacts/hyper_threading_main
- name: Upload Main Binary
uses: actions/upload-artifact@master
with:
name: hyper_threading_main_binary
path: ./hyper_threading_main
path: ${{ github.workspace }}/artifacts/hyper_threading_main

- name: Download Binaries and Script
uses: actions/download-artifact@master
with:
path: ./

- name: Download script
uses: actions/download-artifact@master
with:
path: ./examples/hyper_threading/
path: ${{ github.workspace }}/artifacts/
- name: Display structure of downloaded files
run: ls -R ${{ github.workspace }}/artifacts/

- name: Run Benchmarks
run: source ./hyper-threading-workflow.sh --show-output
run: source ${{ github.workspace }}/artifacts/hyper-threading-workflow.sh --show-output

- name: Compare Results
run: |
Expand Down

0 comments on commit ad99511

Please sign in to comment.