Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: deinit submodules before running actions/checkout #11877

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
42 changes: 39 additions & 3 deletions .github/workflows/ci.yaml
Expand Up @@ -52,6 +52,9 @@ jobs:
- name: Set JDK 16 as default
run: echo "/usr/lib/jvm/java-16-openjdk-amd64/bin" >> $GITHUB_PATH

- name: Cleanup submodules
run: git reset --hard HEAD && git submodule sync && git submodule deinit -f . && git submodule status && git status && git diff || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand Down Expand Up @@ -97,6 +100,9 @@ jobs:
- name: Set JDK 16 as default
run: echo "/usr/lib/jvm/java-16-openjdk-amd64/bin" >> $GITHUB_PATH

- name: Cleanup submodules
run: git reset --hard HEAD && git submodule sync && git submodule deinit -f . && git submodule status && git status && git diff || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand Down Expand Up @@ -190,6 +196,9 @@ jobs:
)"

steps:
- name: Cleanup submodules
run: git reset --hard HEAD && git submodule sync && git submodule deinit -f . && git submodule status && git status && git diff || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand All @@ -204,7 +213,7 @@ jobs:

- name: Test
run: |
git submodule sync
git submodule sync && cat .gitmodules
git submodule update --init --recursive --jobs 7
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestA"

Expand All @@ -230,6 +239,9 @@ jobs:
)"

steps:
- name: Cleanup submodules
run: git reset --hard HEAD && git submodule sync && git submodule deinit -f . && git submodule status && git status && git diff || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand All @@ -244,7 +256,7 @@ jobs:

- name: Test
run: |
git submodule sync
git submodule sync && cat .gitmodules
git submodule update --init --recursive --jobs 7
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestB"

Expand All @@ -270,6 +282,9 @@ jobs:
)"

steps:
- name: Cleanup submodules
run: git reset --hard HEAD && git submodule sync && git submodule deinit -f . && git submodule status && git status && git diff || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand All @@ -284,7 +299,7 @@ jobs:

- name: Test
run: |
git submodule sync
git submodule sync && cat .gitmodules
git submodule update --init --recursive --jobs 7
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestC"

Expand All @@ -310,6 +325,9 @@ jobs:
)"

steps:
- name: Cleanup submodules
run: git reset --hard HEAD && git submodule sync && git submodule deinit -f . && git submodule status && git status && git diff || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand Down Expand Up @@ -358,6 +376,9 @@ jobs:
- name: Set JDK 8 as default
run: echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH

- name: Cleanup submodules
run: git reset --hard HEAD && git submodule sync && git submodule deinit -f . && git submodule status && git status && git diff || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand Down Expand Up @@ -394,6 +415,9 @@ jobs:
SONATYPE_USER: ${{ secrets.SONATYPE_USER_ORGSCALALANG }}

steps:
- name: Cleanup submodules
run: git reset --hard HEAD && git submodule sync && git submodule deinit -f . && git submodule status && git status && git diff || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand Down Expand Up @@ -428,6 +452,9 @@ jobs:
# Make sure you have the write permissions to the repo: https://github.com/lampepfl/dotty-website

steps:
- name: Cleanup submodules
run: git reset --hard HEAD && git submodule sync && git submodule deinit -f . && git submodule status && git status && git diff || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand Down Expand Up @@ -474,6 +501,9 @@ jobs:
SONATYPE_USER: ${{ secrets.SONATYPE_USER_ORGSCALALANG }}

steps:
- name: Cleanup submodules
run: git reset --hard HEAD && git submodule sync && git submodule deinit -f . && git submodule status && git status && git diff || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand Down Expand Up @@ -556,6 +586,9 @@ jobs:
# Make sure you have the write permissions to the repo: https://github.com/lampepfl/dotty-website

steps:
- name: Cleanup submodules
run: git reset --hard HEAD && git submodule sync && git submodule deinit -f . && git submodule status && git status && git diff || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand Down Expand Up @@ -601,6 +634,9 @@ jobs:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}

steps:
- name: Cleanup submodules
run: git reset --hard HEAD && git submodule sync && git submodule deinit -f . && git submodule status && git status && git diff || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand Down