Skip to content

Commit 8a137ce

Browse files
chnaged branch in workflow 2
1 parent bd288be commit 8a137ce

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

.github/workflows/_linux-build.yml

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,7 @@ jobs:
157157

158158
- name: configure aws credentials
159159
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
160-
<<<<<<< HEAD
161-
if: ${{ inputs.aws-role-to-assume != '' && inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel' }}
162-
=======
163160
if: ${{ inputs.aws-role-to-assume != '' && inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel' }}
164-
>>>>>>> 2048c7e20c1af26aef41fe8de2d7dcaf386f2c20
165161
with:
166162
role-to-assume: ${{ inputs.aws-role-to-assume }}
167163
role-session-name: gha-linux-build
@@ -313,10 +309,6 @@ jobs:
313309
DOCKER_SHELL_CMD=
314310
fi
315311
316-
<<<<<<< HEAD
317-
=======
318-
319-
>>>>>>> 2048c7e20c1af26aef41fe8de2d7dcaf386f2c20
320312
# Compute memory limits, but skip setting them for ppc64le
321313
if [[ ${BUILD_ENVIRONMENT} != *"ppc64le"* ]]; then
322314
@@ -329,34 +321,6 @@ jobs:
329321
else
330322
MEMORY_FLAGS=""
331323
fi
332-
<<<<<<< HEAD
333-
=======
334-
335-
if [[ ${BUILD_ENVIRONMENT} == *"riscv64"* ]]; then
336-
# EC2 specific setup for RISC-V emulation
337-
# Ensure binfmt_misc is available
338-
echo "Mounting binfmt_misc filesystem"
339-
sudo mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc 2>/dev/null || true
340-
341-
echo "QEMU registration: multiarch/qemu-user-static"
342-
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes || true
343-
344-
# Final verification
345-
echo "Checking binfmt_misc status:"
346-
ls -la /proc/sys/fs/binfmt_misc/ 2>/dev/null || echo "Cannot access binfmt_misc directory"
347-
348-
if [ -f /proc/sys/fs/binfmt_misc/qemu-riscv64 ]; then
349-
echo "qemu-riscv64 registration successful"
350-
else
351-
echo "qemu-riscv64 registration failed - proceeding without emulation"
352-
echo "This may cause RISC-V builds to fail"
353-
fi
354-
355-
RISCV_DOCKER_ARGS="--privileged"
356-
else
357-
RISCV_DOCKER_ARGS=
358-
fi
359-
>>>>>>> 2048c7e20c1af26aef41fe8de2d7dcaf386f2c20
360324
361325
# detached container should get cleaned up by teardown_ec2_linux
362326
# Used for JENKINS_USER and DOCKER_SHELL_CMD, which can be empty
@@ -379,10 +343,7 @@ jobs:
379343
-e HUGGING_FACE_HUB_TOKEN \
380344
-e SCRIBE_GRAPHQL_ACCESS_TOKEN \
381345
-e BUILD_ADDITIONAL_PACKAGES \
382-
<<<<<<< HEAD
383346
384-
=======
385-
>>>>>>> 2048c7e20c1af26aef41fe8de2d7dcaf386f2c20
386347
--env-file="/tmp/github_env_${GITHUB_RUN_ID}" \
387348
--security-opt seccomp=unconfined \
388349
--cap-add=SYS_PTRACE \
@@ -456,11 +417,7 @@ jobs:
456417

457418
- name: Store PyTorch Build Artifacts for s390x
458419
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
459-
<<<<<<< HEAD
460-
if: inputs.build-generates-artifacts && (steps.build.outcome != 'skipped' || steps.use-old-whl.outputs.reuse == 'true') && inputs.build-environment == 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel'
461-
=======
462420
if: inputs.build-generates-artifacts && (steps.build.outcome != 'skipped' || steps.use-old-whl.outputs.reuse == 'true') && ( inputs.build-environment == 'linux-s390x-binary-manywheel' || inputs.build-environment == 'linux-ppc64le-binary-manywheel')
463-
>>>>>>> 2048c7e20c1af26aef41fe8de2d7dcaf386f2c20
464421
with:
465422
name: ${{ inputs.build-environment }}
466423
retention-days: 14
@@ -510,11 +467,7 @@ jobs:
510467
if: always() && inputs.build-environment != 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel'
511468

512469
- name: Cleanup docker
513-
<<<<<<< HEAD
514-
if: always() && inputs.build-environment == 'linux-s390x-binary-manywheel' && inputs.build-environment != 'linux-ppc64le-binary-manywheel'
515-
=======
516470
if: always() && inputs.build-environment == 'linux-s390x-binary-manywheel' && inputs.build-environment == 'linux-ppc64le-binary-manywheel'
517-
>>>>>>> 2048c7e20c1af26aef41fe8de2d7dcaf386f2c20
518471
shell: bash
519472
run: |
520473
# on s390x stop the container for clean worker stop

0 commit comments

Comments
 (0)