Skip to content

Commit c4e5eb1

Browse files
committed
chore: cleanup code
1 parent 2c6d497 commit c4e5eb1

File tree

1 file changed

+0
-152
lines changed

1 file changed

+0
-152
lines changed

.github/workflows/ci.yml

-152
Original file line numberDiff line numberDiff line change
@@ -55,41 +55,6 @@ jobs:
5555
# - name: Run cargo fmt
5656
# run: cargo fmt --all -- --check
5757

58-
#proof-params:
59-
# needs: set-msrv
60-
# runs-on: ubuntu-latest
61-
# name: Generate proof parameters and cache them
62-
# strategy:
63-
# matrix:
64-
# size: [2048, 4096, 16384, 32768]
65-
#
66-
# steps:
67-
# - uses: actions/checkout@v4
68-
# #- uses: dtolnay/rust-toolchain@master
69-
# # with:
70-
# # toolchain: ${{needs.set-msrv.outputs.msrv}}
71-
# #- name: Install required packages
72-
# # run: sudo apt install --no-install-recommends --yes ocl-icd-opencl-dev libhwloc-dev
73-
#
74-
# - name: Generate proof parameters
75-
# #run: cargo run --release --no-default-features --bin paramcache -- --sector-sizes=${{ matrix.size }}
76-
# run: mkdir -p /var/tmp/filecoin-proof-parameters/ && touch /var/tmp/filecoin-proof-parameters/${{ matrix.size }}.params
77-
#
78-
# #- name: Cache proof parameters
79-
# # id: cache-parameters
80-
# # uses: actions/cache/save@v4
81-
# # with:
82-
# # path: /var/tmp/filecoin-proof-parameters/
83-
# # key: proof-params-v28-n-${{ matrix.size }}-${{ hashFiles('filecoin-proofs/parameters.json') }}
84-
#
85-
# - name: Upload proof parameters as artifact
86-
# uses: actions/upload-artifact@v4
87-
# with:
88-
# name: proof-params-v28-n-${{ hashFiles('filecoin-proofs/parameters.json') }}-${{ matrix.size }}
89-
# path: /var/tmp/filecoin-proof-parameters/
90-
# compression-level: 0
91-
# if-no-files-found: error
92-
9358
test_release:
9459
needs: set-msrv
9560
runs-on: ubuntu-latest
@@ -105,94 +70,6 @@ jobs:
10570
- name: Install required packages
10671
run: sudo apt install --no-install-recommends --yes ocl-icd-opencl-dev libhwloc-dev
10772

108-
109-
110-
#- name: Cache proof parameters
111-
# id: cache-parameters
112-
# uses: actions/cache@v4
113-
# with:
114-
# path: /var/tmp/filecoin-proof-parameters/
115-
# #key: proof-params-v28-n-${{ runner.os }}-${{ hashFiles('filecoin-proofs/parameters.json') }}
116-
# key: proof-params-v28-n-${{ hashFiles('filecoin-proofs/parameters.json') }}
117-
#- name: Generate proof parameters
118-
# if: steps.cache-parameters.outputs.cache-hit != 'true'
119-
# #run: cargo build --release --no-default-features --bin paramcache --sector-sizes='2048,4096,16384,32768'
120-
# run: cargo run --release --no-default-features --bin paramcache -- --sector-sizes='2048'
121-
122-
#- name: Restore proof parameters cache 2KiB
123-
# id: cache-parameters-2048
124-
# uses: actions/cache/restore@v4
125-
# with:
126-
# path: /var/tmp/filecoin-proof-parameters/
127-
# #key: proof-params-v28-n-${{ runner.os }}-${{ hashFiles('filecoin-proofs/parameters.json') }}
128-
# key: proof-params-v28-n-2048-${{ hashFiles('filecoin-proofs/parameters.json') }}
129-
130-
131-
132-
#- name: Get proof parameters 2KiB
133-
# uses: actions/cache/restore@v4
134-
# with:
135-
# path: /var/tmp/filecoin-proof-parameters/
136-
# #key: proof-params-v28-n-${{ runner.os }}-${{ hashFiles('filecoin-proofs/parameters.json') }}
137-
# key: proof-params-v28-n-2048-${{ hashFiles('filecoin-proofs/parameters.json') }}
138-
#
139-
#
140-
#- name: List parameter files
141-
# run: ls -al /var/tmp/filecoin-proof-parameters/
142-
#
143-
#- name: Restore proof parameters cache 4KiB
144-
# id: cache-parameters-4096
145-
# uses: actions/cache/restore@v4
146-
# with:
147-
# path: /var/tmp/filecoin-proof-parameters/
148-
# key: proof-params-v28-n-4096-${{ hashFiles('filecoin-proofs/parameters.json') }}
149-
#
150-
#- name: List parameter files
151-
# run: ls -al /var/tmp/filecoin-proof-parameters/
152-
#
153-
154-
155-
#- name: Get proof parameters
156-
# uses: dawidd6/action-download-artifact@v6
157-
# with:
158-
# workflow: proof-params.yml
159-
# path: /var/tmp/filecoin-proof-parameters/
160-
# #merge-multiple: true
161-
# #github-token: ${{ github.token }}
162-
# #repository: ${{ github.action_repository }}
163-
# #run-id: ${{ github.event.workflow_run.id }}
164-
# #github-token: ${{ secrets.GITHUB_TOKEN }}
165-
# #github-token: ${{ github.token }}
166-
# #run-id: ${{ github.event.workflow_run.id }}
167-
#- name: Display structure of downloaded files
168-
# run: ls -lR /var/tmp/filecoin-proof-parameters/
169-
#- name: Move all artifacts from sub directories into the main one
170-
# run: 'mv /var/tmp/filecoin-proof-parameters/*/* /var/tmp/filecoin-proof-parameters/'
171-
#- name: Remove sub directories
172-
# run: 'rmdir /var/tmp/filecoin-proof-parameters/* || true'
173-
#- name: Display structure of downloaded files
174-
# run: ls -lR /var/tmp/filecoin-proof-parameters/
175-
176-
177-
#- name: Get run-id from latest proof-params workflow run
178-
# uses: octokit/[email protected]
179-
# id: latest-proof-params
180-
# with:
181-
# route: GET /repos/filecoin-project/rust-fil-proofs/actions/workflows/proof-params.yml/runs?per_page=1
182-
# env:
183-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
184-
#
185-
#- name: Download all Artifacts from proof-params workflow
186-
# uses: actions/download-artifact@v4
187-
# with:
188-
# pattern: proof-params-v28-n-${{ hashFiles('filecoin-proofs/parameters.json') }}-*
189-
# path: /var/tmp/filecoin-proof-parameters/
190-
# merge-multiple: true
191-
# run-id: ${{ fromJson(steps.latest-proof-params.outputs.data).workflow_runs[0].id }}
192-
# github-token: ${{ secrets.GITHUB_TOKEN }}
193-
#- name: List parameter files
194-
# run: ls -al /var/tmp/filecoin-proof-parameters/
195-
19673
- name: Download the proof params
19774
uses: ./.github/actions/proof-params-download
19875
with:
@@ -204,32 +81,3 @@ jobs:
20481
# Some `storage-proofs-update` tests need to run sequentially due to
20582
# their high memory usage.
20683
cargo test --release -p storage-proofs-update --features isolated-testing ${{ matrix.cargo-args }} -- --test-threads=1
207-
208-
#upload:
209-
# strategy:
210-
# matrix:
211-
# runs-on: [ubuntu-latest, macos-latest]
212-
# runs-on: ${{ matrix.runs-on }}
213-
# steps:
214-
# - name: Create a File
215-
# run: echo "hello from ${{ matrix.runs-on }}" > file-${{ matrix.runs-on }}.txt
216-
# - name: Upload Artifact
217-
# uses: actions/upload-artifact@v4
218-
# with:
219-
# name: my-artifact-${{ matrix.runs-on }}
220-
# path: file-${{ matrix.runs-on }}.txt
221-
#download:
222-
# needs: upload
223-
# runs-on: ubuntu-latest
224-
# steps:
225-
# - name: Download All Artifacts
226-
# uses: actions/download-artifact@v4
227-
# with:
228-
# path: my-artifact
229-
# pattern: my-artifact-*
230-
# merge-multiple: true
231-
# #repository: ${{ github.action_repository }}
232-
# run-id: ${{ github.event.workflow_run.id }}
233-
# #github-token: ${{ secrets.GITHUB_TOKEN }}
234-
# #github-token: ${{ github.token }}
235-
# - run: ls -R my-artifact

0 commit comments

Comments
 (0)