Skip to content

Commit 74c2c3e

Browse files
committed
More debug
1 parent e8a8056 commit 74c2c3e

File tree

1 file changed

+34
-9
lines changed

1 file changed

+34
-9
lines changed

.github/workflows/build-windows.yml

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,21 @@ jobs:
100100
- name: 'Test platform'
101101
id: test-platform
102102
run: |
103-
echo "Processor identifier: ${PROCESSOR_IDENTIFIER}"
104-
echo "Architecture details: $(uname -ar)"
105-
bash make/autoconf/build-aux/config.guess
106-
env:
107-
# We need a minimal PATH on Windows
108-
# Set PATH to "", so just GITHUB_PATH is included
109-
PATH: ''
103+
echo "=== Environment ==="
104+
echo "PROCESSOR_IDENTIFIER: ${PROCESSOR_IDENTIFIER}"
105+
echo "uname -s: $(uname -s)"
106+
echo "uname -m: $(uname -m)"
107+
echo "uname -ar: $(uname -ar)"
108+
echo ""
109+
echo "=== Testing config.guess ==="
110+
cd make/autoconf/build-aux
111+
echo "Direct autoconf-config.guess:"
112+
./autoconf-config.guess || echo "autoconf-config.guess failed"
113+
echo ""
114+
echo "Custom config.guess:"
115+
bash -x ./config.guess
116+
echo "config.site"
117+
cat /etc/config.site
110118
shell: env /usr/bin/bash --login -eo pipefail {0}
111119

112120
- name: 'Get JTReg'
@@ -145,7 +153,16 @@ jobs:
145153

146154
- name: 'Configure'
147155
run: >
148-
bash configure
156+
echo "=== Platform Detection During Configure ===" &&
157+
echo "Before configure - PROCESSOR_IDENTIFIER: ${PROCESSOR_IDENTIFIER}" &&
158+
echo "Before configure - config.guess output:" &&
159+
make/autoconf/build-aux/config.guess &&
160+
echo "=== Environment Check ===" &&
161+
echo "BUILD_PLATFORM: ${BUILD_PLATFORM:-not set}" &&
162+
echo "HOST_PLATFORM: ${HOST_PLATFORM:-not set}" &&
163+
echo "TARGET_PLATFORM: ${TARGET_PLATFORM:-not set}" &&
164+
echo "=== Running Configure ===" &&
165+
bash -x configure
149166
--with-conf-name=${{ inputs.platform }}
150167
${{ matrix.flags }}
151168
--with-version-opt=${GITHUB_ACTOR}-${GITHUB_SHA}
@@ -154,9 +171,11 @@ jobs:
154171
--with-gtest=${{ steps.gtest.outputs.path }}
155172
--with-msvc-toolset-version=${{ inputs.msvc-toolset-version }}
156173
--with-jmod-compress=zip-1
157-
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
174+
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} 2>&1 | tee configure.log || (
158175
echo "Dumping config.log:" &&
159176
cat config.log &&
177+
echo "Dumping configure.log:" &&
178+
cat configure.log &&
160179
exit 1)
161180
env:
162181
# We need a minimal PATH on Windows
@@ -165,6 +184,12 @@ jobs:
165184
shell: env /usr/bin/bash --login -eo pipefail {0}
166185
if: ${{ inputs.dry-run == false }}
167186

187+
- name: 'Upload configure log'
188+
uses: actions/upload-artifact@v4
189+
with:
190+
name: configure-log-${{ inputs.platform }}${{ matrix.suffix }}
191+
path: configure.log
192+
168193
- name: 'Build'
169194
id: build
170195
uses: ./.github/actions/do-build

0 commit comments

Comments
 (0)