benchmarks_gitlab.yml 1.24 KiB
Newer Older
name: Benchmarks gitlab

on:
  schedule:
Niklas Adolfsson's avatar
Niklas Adolfsson committed
    - cron: "0 13 * * *"

jobs:
  bench:
    name: Benchmarks gitlab
    runs-on: ubuntu-latest
    steps:

      - name: Checkout Sources
Niklas Adolfsson's avatar
Niklas Adolfsson committed
          fetch-depth: 0
          ref: "gh-pages"

      - name: Install Rust nightly toolchain
        uses: actions-rs/[email protected]
        with:
          profile: minimal
          toolchain: nightly
          override: true

Niklas Adolfsson's avatar
Niklas Adolfsson committed
      - name: Rust Cache
        uses: Swatinem/[email protected]

      - name: Show current working dir
Niklas Adolfsson's avatar
Niklas Adolfsson committed
          echo $(pwd)

      - name: Copy bench results
        id: step_two
        run: |
          cp bench/$(date "+%d-%m-%Y")/output.txt output.txt

      - name: Show current workdir
        id: step_three
        run: |
          git checkout master

      - name: Store benchmark result
        uses: rhysd/github-action-benchmark@v1
        with:
Niklas Adolfsson's avatar
Niklas Adolfsson committed
          tool: 'cargo'
          output-file-path: "output.txt"
          benchmark-data-dir-path: "bench/dev2"
          fail-on-alert: true
          github-token: ${{ secrets.GITHUB_TOKEN }}
          comment-on-alert: true
          alert-comment-cc-users: '@niklasad1'
          auto-push: true