Skip to content

Commit 1cda3aa

Browse files
add debug
1 parent e2efbe4 commit 1cda3aa

File tree

2 files changed

+31
-6
lines changed

2 files changed

+31
-6
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,30 @@ jobs:
281281
merge-archive: true
282282
path: .
283283

284+
- name: Verify Artifacts Downloaded
285+
run: |
286+
if [ ! -d "dist" ]; then
287+
echo "Error: dist directory not found after downloading artifacts"
288+
exit 1
289+
fi
290+
echo "Artifacts downloaded successfully"
291+
284292
- name: Debug - List Downloaded Artifacts
285293
run: |
286-
echo "Contents of dist/binaries:"
287-
find dist/binaries -type f -o -type d | head -20 || true
294+
echo "=== Current directory structure ==="
295+
ls -la || true
296+
echo ""
297+
echo "=== Contents of dist (if exists) ==="
298+
ls -la dist/ || true
299+
echo ""
300+
echo "=== Contents of dist/binaries (if exists) ==="
301+
find dist/binaries -type f -o -type d 2>/dev/null | head -20 || echo "dist/binaries does not exist"
302+
echo ""
303+
echo "=== All files in current directory (recursive) ==="
304+
find . -type f -name "main" -o -name "hoop_rs" -o -name "*.tar.gz" 2>/dev/null | head -20 || true
288305
echo ""
289-
echo "Directory structure:"
290-
ls -la dist/binaries/ || true
306+
echo "=== Directory tree (first 3 levels) ==="
307+
find . -maxdepth 3 -type d 2>/dev/null | sort || true
291308
292309
- name: Build Tar Files for All Architectures
293310
run: |

Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,23 @@ build-clean-folder:
4343
mkdir -p ${DIST_FOLDER}/binaries/${GOOS}_${GOARCH}
4444

4545
build-tar-files:
46-
mkdir -p ${DIST_FOLDER}/binaries/${GOOS}_${GOARCH}
46+
@if [ ! -d "${DIST_FOLDER}/binaries/${GOOS}_${GOARCH}" ]; then \
47+
echo "Error: Directory ${DIST_FOLDER}/binaries/${GOOS}_${GOARCH} does not exist"; \
48+
exit 1; \
49+
fi
50+
@if [ -z "$$(ls -A ${DIST_FOLDER}/binaries/${GOOS}_${GOARCH} 2>/dev/null)" ]; then \
51+
echo "Error: Directory ${DIST_FOLDER}/binaries/${GOOS}_${GOARCH} is empty"; \
52+
echo "Contents should be: main (Go binary) and/or hoop_rs (Rust binary)"; \
53+
exit 1; \
54+
fi
4755
tar -czvf ${DIST_FOLDER}/binaries/hoop_${VERSION}_${OS}_${GOARCH}.tar.gz -C ${DIST_FOLDER}/binaries/${GOOS}_${GOARCH} .
4856
tar -czvf ${DIST_FOLDER}/binaries/hoop_${VERSION}_${OS}_${SYMLINK_ARCH}.tar.gz -C ${DIST_FOLDER}/binaries/${GOOS}_${GOARCH} .
4957
sha256sum ${DIST_FOLDER}/binaries/hoop_${VERSION}_${OS}_${GOARCH}.tar.gz > ${DIST_FOLDER}/binaries/hoop_${VERSION}_${OS}_${GOARCH}_checksum.txt
5058
sha256sum ${DIST_FOLDER}/binaries/hoop_${VERSION}_${OS}_${SYMLINK_ARCH}.tar.gz > ${DIST_FOLDER}/binaries/hoop_${VERSION}_${OS}_${SYMLINK_ARCH}_checksum.txt
5159
rm -rf ${DIST_FOLDER}/binaries/${GOOS}_${GOARCH}
5260

5361
build-go: build-clean-folder
54-
env CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} go build -o ${DIST_FOLDER}/binaries/${GOOS}_${GOARCH}/main main.go
62+
env CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} go build -o ${DIST_FOLDER}/binaries/${GOOS}_${GOARCH}/ main.go
5563

5664
build-webapp:
5765
mkdir -p ${DIST_FOLDER}

0 commit comments

Comments
 (0)