Skip to content

Commit dd99b0c

Browse files
committed
Fix enclave.eif file not found
1 parent bc24cdd commit dd99b0c

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

.github/workflows/build-eif.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,36 @@ jobs:
9292
run: |
9393
nix build '.#x86_64-eif' -L || true
9494
95+
echo "=== Finding EIF in nix store ==="
96+
ls -la /nix/store/*batcher* 2>/dev/null || echo "No batcher found"
97+
9598
EIF=$(ls -d /nix/store/*batcher-x86_64 2>/dev/null | head -1)
9699
echo "Found: $EIF"
100+
101+
if [ -z "$EIF" ]; then
102+
echo "ERROR: No EIF found in store"
103+
exit 1
104+
fi
105+
106+
echo "=== EIF details ==="
97107
ls -la "$EIF"
108+
file "$EIF" || true
98109
110+
echo "=== Copying EIF ==="
99111
if [ -f "$EIF" ]; then
100-
cp "$EIF" ./enclave.eif
112+
echo "EIF is a file"
113+
cp -v "$EIF" ./enclave.eif
101114
elif [ -d "$EIF" ]; then
102-
cp "$EIF"/* ./enclave.eif 2>/dev/null || cp -r "$EIF" ./enclave-dir
115+
echo "EIF is a directory, contents:"
116+
ls -la "$EIF"/
117+
cp -v "$EIF"/* ./enclave.eif 2>/dev/null || cp -rv "$EIF" ./enclave-dir
118+
else
119+
echo "EIF is neither file nor directory, trying direct copy"
120+
cp -Lv "$EIF" ./enclave.eif
103121
fi
104122
105-
ls -la ./enclave*
123+
echo "=== Result ==="
124+
ls -la ./enclave* || echo "No enclave files found!"
106125
107126
- name: Get PCR0
108127
run: |

0 commit comments

Comments
 (0)