From 584849c2922e3616c0814d4be8dc227c12696d08 Mon Sep 17 00:00:00 2001 From: David Cosby Date: Mon, 11 Dec 2023 15:04:05 -0700 Subject: [PATCH] trying different tool --- .github/workflows/benchmark.yml | 19 +++++++++++++++++++ .github/workflows/rust.yml | 22 ++++++---------------- 2 files changed, 25 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/benchmark.yml diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml new file mode 100644 index 0000000..b8062fd --- /dev/null +++ b/.github/workflows/benchmark.yml @@ -0,0 +1,19 @@ +name: Run Benchmarks +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +name: Run benchmarks +jobs: + runBenchmark: + name: run benchmark + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: boa-dev/criterion-compare-action@v3 + with: + cwd: "./sled" + # Needed. The name of the branch to compare with. This default uses the branch which is being pulled against + branchName: ${{ github.base_ref }} \ No newline at end of file diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1240f2d..4c81729 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,4 +1,4 @@ -name: Rust +name: Build and Run Tests on: push: @@ -17,22 +17,12 @@ jobs: steps: - uses: actions/checkout@v3 - # - name: Build - # working-directory: ./sled - # run: cargo build + - name: Build + working-directory: ./sled + run: cargo build - # - name: Run tests - # working-directory: ./sled - # run: cargo test - - - name: Run benchmark + - name: Run tests working-directory: ./sled - run: cargo bench map | tee output.txt;echo "outputting file here:"; cat output.txt - - - name: Store benchmark results - uses: benchmark-action/github-action-benchmark@v1 - with: - tool: 'cargo' - output-file-path: sled/output.txt + run: cargo test