From 351c0dc646eb4c4ec27d849792d63b2320d4e245 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Mon, 13 Oct 2025 20:56:53 +0200 Subject: [PATCH] Test stable benchmarks with the beta toolchain --- .github/workflows/beta-stable-benchmarks.yml | 35 ++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/beta-stable-benchmarks.yml diff --git a/.github/workflows/beta-stable-benchmarks.yml b/.github/workflows/beta-stable-benchmarks.yml new file mode 100644 index 000000000..f760717a9 --- /dev/null +++ b/.github/workflows/beta-stable-benchmarks.yml @@ -0,0 +1,35 @@ +name: Test stable benchmarks with beta +on: + pull_request: + schedule: + - cron: "0 12 * * 1" # Every Monday at 12:00 UTC + +jobs: + test-stable: + name: Test stable benchmarks + runs-on: ubuntu-24.04 + steps: + - name: Checkout the source code + uses: actions/checkout@v4 + + - name: Install beta toolchain + run: | + rustup install beta + rustup default beta + + - uses: Swatinem/rust-cache@v2 + with: + key: beta + + - name: Configure environment + run: | + sudo apt-get update + sudo apt-get install -y linux-tools-common linux-tools-generic linux-tools-`uname -r` + echo -1 | sudo tee /proc/sys/kernel/perf_event_paranoid + + - name: Build + run: cargo build -p collector + + - name: Run stable benchmarks + run: | + cargo run --bin collector bench_local `rustup +beta which rustc` --category Stable