File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,9 @@ 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
28+
29+ RUN mkdir /workspace/pytorch
2830
2931# Copy the build script and make it executable
3032COPY .github/scripts/ppc64le-build.sh /ppc64le-build.sh
Original file line number Diff line number Diff line change 3131
3232 - name : Run Docker container and execute build script
3333 run : |
34- docker run -d --name temp_builder pytorch-ppc64le:ubi9.3 /ppc64le-build.sh
35- docker wait temp_builder
36- docker cp temp_builder:/workspace/pytorch/dist/. dist/
34+ docker run --rm -u $(id -u):$(id -g) -v "${{ github.workspace }}:/workspace/pytorch" pytorch-ppc64le:ubi9.3 bash -c "
35+ export GIT_DISCOVERY_ACROSS_FILESYSTEM=1 &&
36+ git -C /workspace/pytorch submodule deinit --all --force &&
37+ git -C /workspace/pytorch submodule update --init --recursive --force &&
38+ /ppc64le-build.sh"
39+
3740
3841
3942
You can’t perform that action at this time.
0 commit comments