File tree Expand file tree Collapse file tree 2 files changed +4
-23
lines changed Expand file tree Collapse file tree 2 files changed +4
-23
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ 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
2929# Copy the build script and make it executable
3030COPY .github/scripts/ppc64le-build.sh /ppc64le-build.sh
Original file line number Diff line number Diff line change @@ -29,30 +29,11 @@ jobs:
2929 run : |
3030 docker build -f .github/workflows/Dockerfile.ppc64le -t pytorch-ppc64le:ubi9.3 .
3131
32- - name : Debug .git directory inside container
33- run : |
34- docker run --rm -v "$(pwd):/workspace/pytorch" pytorch-ppc64le:ubi9.3 bash -c "ls -la /workspace/pytorch/.git || echo '.git directory not found'"
35-
36- - name : Debug ownership inside container
37- run : |
38- docker run --rm -v "$(pwd):/workspace/pytorch" pytorch-ppc64le:ubi9.3 bash -c "
39- ls -ld /workspace/pytorch;
40- ls -ld /workspace/pytorch/.git;
41- whoami"
42-
43- - run : |
44- docker run --rm -u $(id -u):$(id -g) -v "/opt/runner/_work/pytorch/pytorch:/workspace/pytorch" pytorch-ppc64le:ubi9.3 bash -c "
45- export GIT_DISCOVERY_ACROSS_FILESYSTEM=1 &&
46- git -C /workspace/pytorch status"
47-
48-
4932 - name : Run Docker container and execute build script
5033 run : |
51- docker run --rm -u $(id -u):$(id -g) -v "${{ github.workspace }}:/workspace/pytorch/pytorch" pytorch-ppc64le:ubi9.3 bash -c "
52- export GIT_DISCOVERY_ACROSS_FILESYSTEM=1 &&
53- git -C /workspace/pytorch submodule deinit --all --force &&
54- git -C /workspace/pytorch submodule update --init --recursive --force &&
55- /ppc64le-build.sh"
34+ docker run -it --name temp_builder pytorch-ppc64le:ubi9.3 /ppc64le-build.sh
35+ docker cp temp_builder:/workspace/pytorch/dist/* dist/
36+
5637
5738
5839 - name : Archive ppc64le artifacts into zip
You can’t perform that action at this time.
0 commit comments