@@ -100,13 +100,21 @@ jobs:
100
100
- name : ' Test platform'
101
101
id : test-platform
102
102
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
110
118
shell : env /usr/bin/bash --login -eo pipefail {0}
111
119
112
120
- name : ' Get JTReg'
@@ -145,7 +153,16 @@ jobs:
145
153
146
154
- name : ' Configure'
147
155
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
149
166
--with-conf-name=${{ inputs.platform }}
150
167
${{ matrix.flags }}
151
168
--with-version-opt=${GITHUB_ACTOR}-${GITHUB_SHA}
@@ -154,9 +171,11 @@ jobs:
154
171
--with-gtest=${{ steps.gtest.outputs.path }}
155
172
--with-msvc-toolset-version=${{ inputs.msvc-toolset-version }}
156
173
--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 || (
158
175
echo "Dumping config.log:" &&
159
176
cat config.log &&
177
+ echo "Dumping configure.log:" &&
178
+ cat configure.log &&
160
179
exit 1)
161
180
env :
162
181
# We need a minimal PATH on Windows
@@ -165,6 +184,12 @@ jobs:
165
184
shell : env /usr/bin/bash --login -eo pipefail {0}
166
185
if : ${{ inputs.dry-run == false }}
167
186
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
+
168
193
- name : ' Build'
169
194
id : build
170
195
uses : ./.github/actions/do-build
0 commit comments