-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.12 KB
/
hs-bench.yml
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
name: Haskell benchmarks
on:
workflow_dispatch:
jobs:
get-inputs:
uses: ephemient/aoc2021/.github/workflows/get-inputs.yml@main
secrets:
SESSION: ${{ secrets.SESSION }}
build:
needs: [ get-inputs ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
ref: gh-docs
path: gh-docs
- uses: actions/download-artifact@v2
with:
name: inputs
path: hs
- uses: haskell/actions/setup@v1
with:
enable-stack: true
- uses: actions/cache@v2
with:
key: ${{ runner.os }}-criterion-${{ hashFiles('**/stack.*') }}-${{ hashFiles('**/package.yaml') }}
restore-keys: ${{ runner.os }}-criterion-${{ hashFiles('**/stack.*') }}-
path: ~/.stack
- run: stack bench --ba '-o ${{ github.workspace }}/gh-docs/aoc2021-bench.html'
working-directory: hs
- uses: EndBug/add-and-commit@v7
with:
cwd: gh-docs
branch: gh-docs
add: aoc2021-bench.html
message: 'Haskell Criterion ${{ github.sha }}'