-
Notifications
You must be signed in to change notification settings - Fork 317
37 lines (31 loc) · 1.15 KB
/
proof-params-generate.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
name: Proof params generate
on:
# Make it also possible to trigger it manually.
workflow_dispatch:
schedule:
# The artifacts are available for 90 days. Run this workflow every two
# months, so that in case of a failure, there's enough time to fix it.
- cron: "0 0 1 */2 *"
env:
# Faster crates.io index checkout.
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
jobs:
proof-params:
runs-on: ubuntu-latest
name: Generate proof parameters and cache them
strategy:
# Run the parameter generation in separate jobs, so that they can run in
# parallel.
matrix:
size: [2048, 4096, 16384, 32768]
steps:
- uses: actions/checkout@v4
- name: Generate proof parameters
run: cargo run --release --no-default-features --bin paramcache -- --sector-sizes=${{ matrix.size }}
- name: Upload proof parameters as artifact
uses: actions/upload-artifact@v4
with:
name: proof-params-v28-n-${{ hashFiles('filecoin-proofs/parameters.json') }}-${{ matrix.size }}
path: /var/tmp/filecoin-proof-parameters/
compression-level: 0
if-no-files-found: error