summaryrefslogtreecommitdiff
path: root/.github/workflows/bench_cron.yml
blob: 3725f80a8710035d95ee0f24217b84f7b7100e2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: bench

on:
  # Runs at minute 9 past hour 0, 6, 12, and 18.
  schedule:
    - cron: 9 0,6,12,18 * * *
  workflow_dispatch:

jobs:
  bench:
    name: bench / ${{ matrix.os }} / ${{ matrix.deno-version }}
    if: github.repository == 'denoland/deno'
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-22.04-xl]

    env:
      CARGO_TERM_COLOR: always
      RUST_BACKTRACE: full
      CI: true
      GOOGLE_SVC_KEY: ${{ secrets.GOOGLE_SVC_KEY }}

    steps:
      - name: Clone repository
        uses: actions/checkout@v3
        with:
          submodules: true
          persist-credentials: false

      - uses: dsherret/rust-toolchain-file@v1

      - name: Build release
        run: cargo build --release --locked --all-targets

      - name: Worker info
        run: |
          cat /proc/cpuinfo
          cat /proc/meminfo

      - name: Run and Post benchmarks
        run: cargo bench --locked