@@ -203,14 +203,34 @@ jobs:
203203 echo "Installing toolchain: ${{ matrix.build.toolchain }}"
204204 sudo tar -xzf "${{ matrix.build.toolchain }}.tar.gz" -C /
205205 rm "${{ matrix.build.toolchain }}.tar.gz"
206- ls -l /opt/netsurf/
206+ echo "Contents of /opt/netsurf/:"
207+ ls -la /opt/netsurf/
208+ echo "Contents of /opt/netsurf/${{ matrix.build.toolchain }}/:"
209+ ls -la /opt/netsurf/${{ matrix.build.toolchain }}/ || true
210+ echo "Contents of /opt/netsurf/${{ matrix.build.toolchain }}/cross/:"
211+ ls -la /opt/netsurf/${{ matrix.build.toolchain }}/cross/ || true
212+ echo "Contents of /opt/netsurf/${{ matrix.build.toolchain }}/cross/bin/:"
213+ ls -la /opt/netsurf/${{ matrix.build.toolchain }}/cross/bin/ || true
207214
208215 - name : Build and install project libs
209216 run : |
210217 ls
211218 export TARGET_WORKSPACE="$(pwd)/projects"
219+ export HOST="${{ matrix.build.toolchain }}"
212220 echo "TARGET_WORKSPACE=$TARGET_WORKSPACE"
213- HOST=${{ matrix.build.toolchain }} source docs/env.sh
221+ echo "HOST=$HOST"
222+
223+ echo "Looking for cross-compiler tools..."
224+ echo "Expected path: /opt/netsurf/${HOST}/cross/bin/"
225+ if [ -f "/opt/netsurf/${HOST}/cross/bin/${HOST}-gcc" ]; then
226+ echo "Found: /opt/netsurf/${HOST}/cross/bin/${HOST}-gcc"
227+ else
228+ echo "NOT FOUND: /opt/netsurf/${HOST}/cross/bin/${HOST}-gcc"
229+ fi
230+
231+ echo "Sourcing env.sh..."
232+ source docs/env.sh
233+ echo "env.sh sourced successfully"
214234 echo "Cloning libs..."
215235 ns-clone -d -s
216236 echo "Building and installing tools..."
@@ -221,13 +241,15 @@ jobs:
221241 - name : Build NetSurf
222242 run : |
223243 export TARGET_WORKSPACE="$(pwd)/projects"
224- HOST=${{ matrix.build.toolchain }} source docs/env.sh
244+ export HOST="${{ matrix.build.toolchain }}"
245+ source docs/env.sh
225246 make -j"$(nproc)" TARGET=${{ matrix.build.frontend }}
226247
227248 - name : Make package
228249 run : |
229250 export TARGET_WORKSPACE="$(pwd)/projects"
230- HOST=${{ matrix.build.toolchain }} source docs/env.sh
251+ export HOST="${{ matrix.build.toolchain }}"
252+ source docs/env.sh
231253 make package TARGET=${{ matrix.build.frontend }}
232254
233255 # Can't avoid `upload-artifact` zipping the package
0 commit comments