Skip to content

Commit

Permalink
ci: clone the whole git
Browse files Browse the repository at this point in the history
Instead of cloning shallow and then unshallowing. Should speed it up
slightly.

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Oct 2, 2023
1 parent f60301e commit a57512f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 31 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ jobs:
TEST_FATAL_WARNINGS: ${{ github.event.inputs.fatal_warnings }}
steps:
- uses: actions/checkout@v3

- name: Fetch tags and unshallow
run: git fetch --unshallow --tags
with:
fetch-depth: 0

- name: Install packages
run: |
Expand All @@ -41,9 +40,8 @@ jobs:
TEST_FATAL_WARNINGS: ${{ github.event.inputs.fatal_warnings }}
steps:
- uses: actions/checkout@v3

- name: Fetch tags and unshallow
run: git fetch --unshallow --tags
with:
fetch-depth: 0

- name: Install packages
run: |
Expand All @@ -64,9 +62,8 @@ jobs:
TEST_FATAL_WARNINGS: ${{ github.event.inputs.fatal_warnings }}
steps:
- uses: actions/checkout@v3

- name: Fetch tags and unshallow
run: git fetch --unshallow --tags
with:
fetch-depth: 0

- name: Install packages
run: |
Expand All @@ -89,9 +86,8 @@ jobs:
platform: ['UCRT64', 'CLANG32', 'CLANG64']
steps:
- uses: actions/checkout@v3

- name: Fetch tags and unshallow
run: git fetch --unshallow --tags
with:
fetch-depth: 0

- uses: msys2/setup-msys2@v2
with:
Expand Down Expand Up @@ -127,9 +123,8 @@ jobs:
TEST_FATAL_WARNINGS: ${{ github.event.inputs.fatal_warnings }}
steps:
- uses: actions/checkout@v3

- name: Fetch tags and unshallow
run: git fetch --unshallow --tags
with:
fetch-depth: 0

- run: brew update
# github actions overwrites brew's python. Force it to reassert itself, by running in a separate step.
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Upload release assets
run: |
git fetch --unshallow --tags
./tools/create_release.py ${{ github.repository }} ${{ secrets.GITHUB_TOKEN }}
# Ideally we should trigger Meson's CI to update the website, but unfortunately
# it requires a Personal Access Token. Instead clone meson and do it ourself.
Expand Down
25 changes: 10 additions & 15 deletions .github/workflows/sanity_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Fetch tags and unshallow
run: git fetch --unshallow --tags
with:
fetch-depth: 0

- name: Install packages
run: |
Expand All @@ -29,9 +28,8 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3

- name: Fetch tags and unshallow
run: git fetch --unshallow --tags
with:
fetch-depth: 0

# https://github.com/actions/runner-images/issues/5459#issuecomment-1532856844
- name: Remove bad Strawberry Perl patch binary in search path
Expand All @@ -50,9 +48,8 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3

- name: Fetch tags and unshallow
run: git fetch --unshallow --tags
with:
fetch-depth: 0

# https://github.com/actions/runner-images/issues/5459#issuecomment-1532856844
- name: Remove bad Strawberry Perl patch binary in search path
Expand All @@ -79,9 +76,8 @@ jobs:
platform: ['UCRT64', 'CLANG32', 'CLANG64']
steps:
- uses: actions/checkout@v3

- name: Fetch tags and unshallow
run: git fetch --unshallow --tags
with:
fetch-depth: 0

- uses: msys2/setup-msys2@v2
with:
Expand Down Expand Up @@ -113,9 +109,8 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3

- name: Fetch tags and unshallow
run: git fetch --unshallow --tags
with:
fetch-depth: 0

- run: brew update
# github actions overwrites brew's python. Force it to reassert itself, by running in a separate step.
Expand Down

0 comments on commit a57512f

Please sign in to comment.