Skip to content

Commit 1269acf

Browse files
authored
Added cache action to ci (#148)
* Added cache action to ci Signed-off-by: artyom-yurin <[email protected]>
1 parent c44f756 commit 1269acf

File tree

4 files changed

+36
-4
lines changed

4 files changed

+36
-4
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ jobs:
3535
steps:
3636
- uses: actions/checkout@v2
3737
name: checkout repo
38+
- name: cache
39+
uses: actions/[email protected]
40+
env:
41+
cache-name: cache-filecoin-ffi-proofs
42+
version: v23
43+
with:
44+
path: /var/tmp/filecoin-proof-parameters
45+
key: build-${{ env.cache-name }}-${{ env.version }}
3846
- name: checkout submodules
3947
shell: bash
4048
run: |
@@ -65,7 +73,7 @@ jobs:
6573
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # has to be included to access other secrets
6674
GITHUB_HUNTER_USERNAME: ${{ secrets.GITHUB_HUNTER_USERNAME }}
6775
GITHUB_HUNTER_TOKEN: ${{ secrets.GITHUB_HUNTER_TOKEN }}
68-
run: cmake . -GNinja -Bbuild -D COVERAGE=ON
76+
run: cmake . -GNinja -Bbuild -D COVERAGE=ON -D TESTING_PROOFS=ON
6977
- name: build
7078
run: cmake --build build -- -j2
7179
- name: tests

.github/workflows/lsan.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v2
1616
name: checkout repo
17+
- name: cache
18+
uses: actions/[email protected]
19+
env:
20+
cache-name: cache-filecoin-ffi-proofs
21+
version: v23
22+
with:
23+
path: /var/tmp/filecoin-proof-parameters
24+
key: build-${{ env.cache-name }}-${{ env.version }}
1725
- name: checkout submodules
1826
shell: bash
1927
run: |
@@ -33,7 +41,7 @@ jobs:
3341
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # has to be included to access other secrets
3442
GITHUB_HUNTER_USERNAME: ${{ secrets.GITHUB_HUNTER_USERNAME }}
3543
GITHUB_HUNTER_TOKEN: ${{ secrets.GITHUB_HUNTER_TOKEN }}
36-
run: cmake . -GNinja -Bbuild -D LSAN=ON
44+
run: cmake . -GNinja -Bbuild -D LSAN=ON -D TESTING_PROOFS=ON
3745
- name: build
3846
run: cmake --build build -- -j2
3947
- name: run tests

.github/workflows/tsan.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v2
1616
name: checkout repo
17+
- name: cache
18+
uses: actions/[email protected]
19+
env:
20+
cache-name: cache-filecoin-ffi-proofs
21+
version: v23
22+
with:
23+
path: /var/tmp/filecoin-proof-parameters
24+
key: build-${{ env.cache-name }}-${{ env.version }}
1725
- name: checkout submodules
1826
shell: bash
1927
run: |
@@ -32,7 +40,7 @@ jobs:
3240
GITHUB_HUNTER_TOKEN: ${{ secrets.GITHUB_HUNTER_TOKEN }}
3341
CFLAGS: "-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include"
3442
CXXFLAGS: "-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include"
35-
run: cmake . -GNinja -Bbuild -D TSAN=ON
43+
run: cmake . -GNinja -Bbuild -D TSAN=ON -D TESTING_PROOFS=ON
3644
- name: build
3745
run: cmake --build build -- -j2
3846
- name: run tests

.github/workflows/ubsan.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v2
1616
name: checkout repo
17+
- name: cache
18+
uses: actions/[email protected]
19+
env:
20+
cache-name: cache-filecoin-ffi-proofs
21+
version: v23
22+
with:
23+
path: /var/tmp/filecoin-proof-parameters
24+
key: build-${{ env.cache-name }}-${{ env.version }}
1725
- name: checkout submodules
1826
shell: bash
1927
run: |
@@ -32,7 +40,7 @@ jobs:
3240
GITHUB_HUNTER_TOKEN: ${{ secrets.GITHUB_HUNTER_TOKEN }}
3341
CFLAGS: "-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include"
3442
CXXFLAGS: "-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include"
35-
run: cmake . -GNinja -Bbuild -D UBSAN=ON
43+
run: cmake . -GNinja -Bbuild -D UBSAN=ON -D TESTING_PROOFS=ON
3644
- name: build
3745
run: cmake --build build -- -j2
3846
- name: run tests

0 commit comments

Comments
 (0)