Skip to content

Commit 1cbdd1a

Browse files
dockerfile name in yml
1 parent 0e0de24 commit 1cbdd1a

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/Dockerfile.ppc64le

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
3032
COPY .github/scripts/ppc64le-build.sh /ppc64le-build.sh

.github/workflows/ppc64le.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@ jobs:
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

0 commit comments

Comments
 (0)