@@ -102,14 +102,30 @@ jobs:
102102 BUILDKIT_PROGRESS : plain
103103 run : |
104104 start-cli init
105+
106+ echo "--- Debugging permissions ---"
107+ echo "User: $(whoami)"
108+ echo "ID: $(id)"
109+ echo "Sudo capabilities:"
110+ sudo -l || echo "sudo -l failed"
111+ echo "Home directory contents:"
112+ ls -la ~
113+ echo ".startos directory initial contents:"
114+ ls -la ~/.startos
115+
116+ echo "Attempting to fix permissions..."
105117 sudo chown -R $(id -u):$(id -g) ~/.startos
106-
118+ sudo chmod -R 777 ~/.startos
119+ echo "New .startos directory contents:"
120+ ls -la ~/.startos
121+ echo "--- End debugging permissions ---"
122+
107123 echo "🏗️ Building ARM package:"
108124 echo " Build type: ${{ steps.check-dockerfile.outputs.build_type }}"
109125 echo " Custom Dockerfile: ${{ steps.check-dockerfile.outputs.has_dockerfile }}"
110126 echo " Node modules cache hit: ${{ steps.cache-node-modules.outputs.cache-hit }}"
111127 echo " Rust cache hit: ${{ steps.cache-rust.outputs.cache-hit }}"
112-
128+
113129 # CONDITIONAL: Set BuildKit cache options only for custom builds
114130 if [ "${{ steps.check-dockerfile.outputs.has_dockerfile }}" = "true" ]; then
115131 export BUILDKIT_CACHE_FROM="type=gha,scope=arm-build"
@@ -118,18 +134,18 @@ jobs:
118134 else
119135 echo " Docker strategy: Pull-only (no BuildKit cache needed)"
120136 fi
121-
137+
122138 time RUST_LOG=debug RUST_BACKTRACE=1 make aarch64
123-
139+
124140 # Find the generated package (dynamic naming)
125141 ARCH_PACKAGE=$(ls *_aarch64.s9pk | head -n1)
126142 PACKAGE_ID=$(start-cli s9pk inspect "$ARCH_PACKAGE" manifest | jq -r '.id')
127-
143+
128144 echo "package_id=${PACKAGE_ID}" >> $GITHUB_OUTPUT
129145 echo "arch_package=${ARCH_PACKAGE}" >> $GITHUB_OUTPUT
130146 echo "package_id=${PACKAGE_ID}" >> $GITHUB_ENV
131147 echo "arch_package=${ARCH_PACKAGE}" >> $GITHUB_ENV
132-
148+
133149 printf "\n ARM SHA256: $(sha256sum ${ARCH_PACKAGE}) \n"
134150
135151 # SMART: Export Docker images based on S9PK manifest
0 commit comments