Skip to content

Commit adee9ec

Browse files
dockerfile name in yml
1 parent 9cda69a commit adee9ec

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/ppc64le.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- name: Checkout repository
2121
uses: actions/checkout@v3
2222
with:
23+
fetch-depth: 0
2324
submodules: true
2425
- name: Set up Docker Buildx
2526
uses: docker/setup-buildx-action@v2
@@ -31,20 +32,23 @@ jobs:
3132
- name: Debug .git directory inside container
3233
run: |
3334
docker run --rm -v "$(pwd):/workspace/pytorch" pytorch-ppc64le:ubi9.3 bash -c "ls -la /workspace/pytorch/.git || echo '.git directory not found'"
34-
35+
- name: Debug Git Submodules
36+
run: |
37+
docker run --rm -v "$(pwd):/workspace/pytorch" pytorch-ppc64le:ubi9.3 bash -c "
38+
echo 'Checking submodules...';
39+
git -C /workspace/pytorch submodule status;
40+
git -C /workspace/pytorch submodule foreach git status;
41+
"
42+
3543
3644
- name: Run Docker container and execute build script
37-
3845
run: |
39-
docker run --rm -v "$(pwd):/workspace/pytorch" pytorch-ppc64le:ubi9.3 bash -c "
40-
if [ -d /workspace/pytorch/.git ]; then
41-
git config --global --add safe.directory /workspace/pytorch &&
42-
git submodule update --init --recursive
43-
else
44-
echo 'Error: /workspace/pytorch is not a valid Git repository'
45-
exit 1
46-
fi
46+
docker run --rm -v "$(pwd):/workspace/pytorch" pytorch-ppc64le:ubi9.3 bash -c "
47+
git config --global --add safe.directory /workspace/pytorch &&
48+
git -C /workspace/pytorch submodule deinit --all --force &&
49+
git -C /workspace/pytorch submodule update --init --recursive --force &&
4750
/ppc64le-build.sh"
51+
4852
4953
- name: Archive ppc64le artifacts into zip
5054

0 commit comments

Comments
 (0)