Skip to content

Commit

Permalink
[workflows] Use shallow git clone in workflows (#8166)
Browse files Browse the repository at this point in the history
Some our github workflows fetch the entire commit history,
allegedly to make bloat reports work, but after examining
the bloat check script it appears that the requirement may
be no longer valid. The bloat check script used to be run
as part of the PR workflows, but now there's a separate
workflow for the bloat report. Let's try if we can safely
switch to the shallow cloning.
  • Loading branch information
Damian-Nordic authored Jul 9, 2021
1 parent b9620ec commit 742472b
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/examples-efr32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
# Fetch depth 0 to get all history and be able to check mergepoint for bloat report
with:
fetch-depth: 0
submodules: true
# - name: Initialize CodeQL
# uses: github/codeql-action/init@v1
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/examples-esp32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
# Fetch depth 0 to get all history and be able to check mergepoint for bloat report
with:
fetch-depth: 0
submodules: true
# - name: Initialize CodeQL
# uses: github/codeql-action/init@v1
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/examples-k32w.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
# Fetch depth 0 to get all history and be able to check mergepoint for bloat report
with:
fetch-depth: 0
submodules: true
# - name: Initialize CodeQL
# uses: github/codeql-action/init@v1
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/examples-linux-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
# Fetch depth 0 to get all history and be able to check mergepoint for bloat report
with:
fetch-depth: 0
submodules: true
# - name: Initialize CodeQL
# uses: github/codeql-action/init@v1
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/examples-mbed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
# Fetch depth 0 to get all history and be able to check mergepoint for bloat report
with:
fetch-depth: 0
submodules: true

- name: Build example
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/examples-nrfconnect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
# Fetch depth 0 to get all history and be able to check mergepoint for bloat report
with:
fetch-depth: 0
submodules: true
- name: Bootstrap
timeout-minutes: 25
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/examples-qpg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
# Fetch depth 0 to get all history and be able to check mergepoint for bloat report
with:
fetch-depth: 0
submodules: true
# - name: Initialize CodeQL
# uses: github/codeql-action/init@v1
Expand Down

0 comments on commit 742472b

Please sign in to comment.