Skip to content

Commit

Permalink
Duplicate jobs
Browse files Browse the repository at this point in the history
I could not figure out how to copy the binary around lol
  • Loading branch information
h3nnn4n committed Mar 9, 2021
1 parent 3842c99 commit 926a1a5
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/heap-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Memory leak check
on: push

jobs:
build:
heapcheck-solve:
runs-on: ubuntu-20.04

steps:
Expand All @@ -29,19 +29,37 @@ jobs:
if: steps.cache-move-tables.outputs.cache-hit != 'true'
run: ./cubotron --rebuild-tables

heapcheck-solve:
runs-on: ubuntu-20.04
needs: build
steps:
- name: Detect Leaks (Solve)
run: ./cubotron --solve DUDUUUDBUFRFRRBRDUBLLUFDUBFBDDFDLUFFRBLFLFBRRLLBRBDRLL --max-depth=21 --n-solutions=5
env:
HEAPCHECK: normal

heapcheck-benchmarks:
runs-on: ubuntu-20.04
needs: build

steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
submodules: true

- name: Install gproftools
run: sudo apt-get install -y google-perftools libgoogle-perftools-dev && sudo ln -s /usr/lib/x86_64-linux-gnu/libtcmalloc.so /usr/lib/libtcmalloc.so

- name: Build
run: make gperftools

- name: Cache Move Tables
id: cache-move-tables
uses: actions/cache@v2
with:
path: move_tables
key: cache-move-tables

- name: Build Tables
if: steps.cache-move-tables.outputs.cache-hit != 'true'
run: ./cubotron --rebuild-tables

- name: Detect Leaks (benchmarks)
run: ./cubotron --benchmarks
env:
Expand Down

0 comments on commit 926a1a5

Please sign in to comment.