@@ -96,13 +96,21 @@ jobs:
96
96
- name : ' Test platform'
97
97
id : test-platform
98
98
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
106
114
shell : env /usr/bin/bash --login -eo pipefail {0}
107
115
108
116
- name : ' Get JTReg'
@@ -141,7 +149,16 @@ jobs:
141
149
142
150
- name : ' Configure'
143
151
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
145
162
--with-conf-name=${{ inputs.platform }}
146
163
${{ matrix.flags }}
147
164
--with-version-opt=${GITHUB_ACTOR}-${GITHUB_SHA}
@@ -150,16 +167,24 @@ jobs:
150
167
--with-gtest=${{ steps.gtest.outputs.path }}
151
168
--with-msvc-toolset-version=${{ inputs.msvc-toolset-version }}
152
169
--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 || (
154
171
echo "Dumping config.log:" &&
155
172
cat config.log &&
173
+ echo "Dumping configure.log:" &&
174
+ cat configure.log &&
156
175
exit 1)
157
176
env :
158
177
# We need a minimal PATH on Windows
159
178
# Set PATH to "", so just GITHUB_PATH is included
160
179
PATH : ' '
161
180
shell : env /usr/bin/bash --login -eo pipefail {0}
162
181
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
+
163
188
- name : ' Build'
164
189
id : build
165
190
uses : ./.github/actions/do-build
0 commit comments