From ec731f8651a04479ce0b454acf4dbb674dad1824 Mon Sep 17 00:00:00 2001 From: SOFe Date: Sun, 1 Dec 2024 18:53:28 +0800 Subject: [PATCH] build criterion pages --- .github/workflows/bench.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/bench.yml diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml new file mode 100644 index 0000000..b9564fe --- /dev/null +++ b/.github/workflows/bench.yml @@ -0,0 +1,31 @@ +on: + push: + branches: + - "master" +name: benchmark + +jobs: + bench: + name: run benchmark + runs-on: ubuntu-latest + steps: + - name: Check out base + uses: actions/checkout@v4 + - name: Install Rust + uses: actions-rust-lang/setup-rust-toolchain@v1 + - name: Run benchmarks + run: cargo bench + - name: Publish results + id: deployment + uses: actions/upload-pages-artifact@v3 + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + name: deploy pages + runs-on: ubuntu-latest + needs: bench + steps: + - name: Deploy to GitHub Pages + uses: actions/deploy-pages@v4 +