Skip to content

Commit afa2e8c

Browse files
committed
install foundry for cast keccack
1 parent 2c35b5d commit afa2e8c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/build-eif.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,21 +102,22 @@ jobs:
102102
echo "EIF directory: $EIF_DIR"
103103
ls -la "$EIF_DIR"/
104104
105-
cp "$EIF_DIR/batcher.eif" ./enclave.eif
106105
cp "$EIF_DIR/pcr.json" ./pcr.json
107106
108107
echo "Copied files:"
109108
ls -la ./enclave.eif ./pcr.json
110109
110+
- name: Install Foundry
111+
uses: foundry-rs/foundry-toolchain@v1
112+
111113
- name: Get PCR0
112114
run: |
113-
echo "=== PCR values from pcr.json ==="
114115
cat ./pcr.json
115116
116117
PCR0=$(jq -r '.PCR0' ./pcr.json)
117-
echo "PCR0: $PCR0"
118-
119118
PCR0_KECCAK=$(cast keccak "0x${PCR0}")
119+
120+
echo "PCR0: $PCR0"
120121
echo "Enclave Hash: $PCR0_KECCAK"
121122
122123
echo "PCR0_RAW=0x${PCR0}" >> $GITHUB_ENV

0 commit comments

Comments
 (0)