Skip to content

Commit

Permalink
Cache tables on all actions
Browse files Browse the repository at this point in the history
  • Loading branch information
h3nnn4n committed Mar 9, 2021
1 parent 696a610 commit 07ce77b
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/heap-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Build
run: make gperftools

- name: Cache Move Tables
- name: Cache Tables
id: cache-tables
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Build
run: make gperftools

- name: Cache Move Tables
- name: Cache Tables
id: cache-tables
uses: actions/cache@v2
with:
Expand Down
23 changes: 19 additions & 4 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Benchmarks
name: Run Benchmarks

on: push

jobs:
build:
run-benchmarks:
runs-on: ${{ matrix.os }}

strategy:
Expand All @@ -15,5 +15,20 @@ jobs:
with:
fetch-depth: 1
submodules: true
- name: Run Makefile
run: make && ./cubotron --benchmarks

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

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

- name: Build
run: make

- name: Run benchmarks
run: ./cubotron --benchmarks
23 changes: 19 additions & 4 deletions .github/workflows/solves.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Solves
name: Run Solver on cube library

on: push

jobs:
build:
run-solver:
runs-on: ${{ matrix.os }}

strategy:
Expand All @@ -15,5 +15,20 @@ jobs:
with:
fetch-depth: 1
submodules: true
- name: Run Makefile
run: make && ./solve_samples.sh

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

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

- name: Build
run: make

- name: Run Solver
run: ./solve_samples.sh
14 changes: 13 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Unit Tests
on: push

jobs:
build:
run-tests:
runs-on: ${{ matrix.os }}

strategy:
Expand All @@ -15,5 +15,17 @@ jobs:
with:
fetch-depth: 1
submodules: true

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

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

- name: Run Makefile
run: make test

0 comments on commit 07ce77b

Please sign in to comment.