Skip to content

Commit 2ff8aad

Browse files
committed
More debug
1 parent bf93d68 commit 2ff8aad

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
@@ -96,13 +96,21 @@ jobs:
9696
- name: 'Test platform'
9797
id: test-platform
9898
run: |
99-
echo "Processor identifier: ${PROCESSOR_IDENTIFIER}"
100-
echo "Architecture details: $(uname -ar)"
101-
bash make/autoconf/build-aux/config.guess
102-
env:
103-
# We need a minimal PATH on Windows
104-
# Set PATH to "", so just GITHUB_PATH is included
105-
PATH: ''
99+
echo "=== Environment ==="
100+
echo "PROCESSOR_IDENTIFIER: ${PROCESSOR_IDENTIFIER}"
101+
echo "uname -s: $(uname -s)"
102+
echo "uname -m: $(uname -m)"
103+
echo "uname -ar: $(uname -ar)"
104+
echo ""
105+
echo "=== Testing config.guess ==="
106+
cd make/autoconf/build-aux
107+
echo "Direct autoconf-config.guess:"
108+
./autoconf-config.guess || echo "autoconf-config.guess failed"
109+
echo ""
110+
echo "Custom config.guess:"
111+
bash -x ./config.guess
112+
echo "config.site"
113+
cat /etc/config.site
106114
shell: env /usr/bin/bash --login -eo pipefail {0}
107115

108116
- name: 'Get JTReg'
@@ -141,7 +149,16 @@ jobs:
141149

142150
- name: 'Configure'
143151
run: >
144-
bash configure
152+
echo "=== Platform Detection During Configure ===" &&
153+
echo "Before configure - PROCESSOR_IDENTIFIER: ${PROCESSOR_IDENTIFIER}" &&
154+
echo "Before configure - config.guess output:" &&
155+
make/autoconf/build-aux/config.guess &&
156+
echo "=== Environment Check ===" &&
157+
echo "BUILD_PLATFORM: ${BUILD_PLATFORM:-not set}" &&
158+
echo "HOST_PLATFORM: ${HOST_PLATFORM:-not set}" &&
159+
echo "TARGET_PLATFORM: ${TARGET_PLATFORM:-not set}" &&
160+
echo "=== Running Configure ===" &&
161+
bash -x configure
145162
--with-conf-name=${{ inputs.platform }}
146163
${{ matrix.flags }}
147164
--with-version-opt=${GITHUB_ACTOR}-${GITHUB_SHA}
@@ -150,16 +167,24 @@ jobs:
150167
--with-gtest=${{ steps.gtest.outputs.path }}
151168
--with-msvc-toolset-version=${{ inputs.msvc-toolset-version }}
152169
--with-jmod-compress=zip-1
153-
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
170+
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} 2>&1 | tee configure.log || (
154171
echo "Dumping config.log:" &&
155172
cat config.log &&
173+
echo "Dumping configure.log:" &&
174+
cat configure.log &&
156175
exit 1)
157176
env:
158177
# We need a minimal PATH on Windows
159178
# Set PATH to "", so just GITHUB_PATH is included
160179
PATH: ''
161180
shell: env /usr/bin/bash --login -eo pipefail {0}
162181

182+
- name: 'Upload configure log'
183+
uses: actions/upload-artifact@v4
184+
with:
185+
name: configure-log-${{ inputs.platform }}${{ matrix.suffix }}
186+
path: configure.log
187+
163188
- name: 'Build'
164189
id: build
165190
uses: ./.github/actions/do-build

0 commit comments

Comments
 (0)