File tree Expand file tree Collapse file tree 2 files changed +9
-15
lines changed Expand file tree Collapse file tree 2 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,12 @@ RUN source /opt/rh/gcc-toolset-13/enable && pip install -r requirements.txt
2424#RUN pip install -r requirements.txt
2525
2626# Copy the PyTorch source code into the container
27- # COPY . /workspace/pytorch
27+ COPY . /workspace/pytorch
2828
29- RUN mkdir -p /workspace/pytorch
29+ WORKDIR /workspace/pytorch
30+
31+ # Ensure submodules are initialized and updated
32+ RUN git submodule update --init --recursive
3033
3134# Copy the build script and make it executable
3235COPY .github/scripts/ppc64le-build.sh /ppc64le-build.sh
Original file line number Diff line number Diff line change @@ -29,22 +29,13 @@ jobs:
2929 run : |
3030 docker build -f .github/workflows/Dockerfile.ppc64le -t pytorch-ppc64le:ubi9.3 .
3131
32- - name : Create Docker Volume
33- run : docker volume create pytorch_workspace
34-
35- - name : Copy Repository to Docker Volume
36- run : |
37- docker run --rm \
38- -v pytorch_workspace:/workspace/pytorch \
39- -v "${{ github.workspace }}:/repo" \
40- pytorch-ppc64le:ubi9.3 bash -c "cp -r /repo/* /workspace/pytorch/"
32+
4133
4234 - name : Run Docker container and execute build script
4335 run : |
44- docker run --rm -u $(id -u):$(id -g) -v "pytorch_workspace:/workspace/pytorch" pytorch-ppc64le:ubi9.3 /ppc64le-build.sh
45-
46-
47-
36+ docker run -d --name temp_builder pytorch-ppc64le:ubi9.3 /ppc64le-build.sh
37+ docker wait temp_builder
38+ docker cp temp_builder:/workspace/pytorch/dist/. dist/
4839
4940 - name : Archive ppc64le artifacts into zip
5041
You can’t perform that action at this time.
0 commit comments