Skip to content

Commit 4f096e5

Browse files
committed
fix: use secretsq
1 parent cdcbab1 commit 4f096e5

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/aggregation_mode.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919
steps:
2020
- name: Start Paperspace machine
2121
env:
22-
PAPERSPACE_API_KEY: ${{ vars.PAPERSPACE_API_KEY }}
23-
MACHINE_ID: ${{ vars.PAPERSPACE_MACHINE_ID }}
22+
PAPERSPACE_API_KEY: ${{ secrets.PAPERSPACE_API_KEY }}
23+
MACHINE_ID: ${{ secrets.PAPERSPACE_MACHINE_ID }}
2424
run: |
2525
set -euo pipefail
2626
2727
if [ -z "${PAPERSPACE_API_KEY}" ] || [ -z "${MACHINE_ID}" ]; then
28-
echo "::error::PAPERSPACE_API_KEY and PAPERSPACE_MACHINE_ID variables must be set."
28+
echo "::error::PAPERSPACE_API_KEY and PAPERSPACE_MACHINE_ID secrets must be set."
2929
exit 1
3030
fi
3131

infra/aggregation_mode/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ The aggregation mode runs on a Paperspace GPU server. To avoid paying for the GP
1515

1616
The workflow needs:
1717

18-
- `PAPERSPACE_API_KEY` repository **variable** — a Paperspace API key.
19-
- `PAPERSPACE_MACHINE_ID` repository **variable** — the id of the GPU machine.
18+
- `PAPERSPACE_API_KEY` repository **secret** — a Paperspace API key.
19+
- `PAPERSPACE_MACHINE_ID` repository **secret** — the id of the GPU machine.
2020

2121
## Setup on Server with GPU
2222

infra/aggregation_mode/aggregation_mode.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ read -p "Enter a block number for Risc0 (last_aggregated_block): " num && echo "
122122
mkdir -p $HOME/repos/aggregation_mode/mainnet
123123
cd $HOME/repos/aggregation_mode/mainnet
124124
git clone https://github.com/yetanotherco/aligned_layer.git
125+
cd aligned_layer # Subsequent relative paths (cargo --path, ./infra/...) resolve from the repo root
125126
# Build the proof_aggregator
126127
#make proof_aggregator_install
127128
cargo install --path aggregation_mode/proof_aggregator --features prove,gpu --bin proof_aggregator_gpu --locked

0 commit comments

Comments
 (0)