Revert "CI: drop deletion of workspace and limit submodule fetch concurrency (#1921)" (#2007)

This reverts commit 07f5f042c7.
pull/2009/head
powderluv 2023-04-06 10:36:30 -07:00 committed by GitHub
parent 2213ce0855
commit 0497f0b08d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 56 additions and 27 deletions

View File

@ -14,16 +14,19 @@ jobs:
if: github.repository == 'llvm/torch-mlir'
steps:
- name: Prepare workspace
run: |
# Clear the workspace directory so that we don't run into errors about
# existing lock files.
sudo rm -rf $GITHUB_WORKSPACE/*
- name: Get torch-mlir
uses: actions/checkout@v3
with:
submodules: 'true'
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
# We fetch the submodules sequentially to prevent multiple threads from
# trampling the index.lock file.
- name: Fetch submodules
run: git submodule update --init --force --depth=1 --jobs 1
- name: Setup ccache
uses: ./.github/actions/setup-build
with:

View File

@ -20,13 +20,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Prepare workspace
run: |
# Clear the workspace directory so that we don't run into errors about
# existing lock files.
sudo rm -rf $GITHUB_WORKSPACE/*
- name: Checkout torch-mlir
uses: actions/checkout@v3
# We fetch the submodules sequentially to prevent multiple threads from
# trampling the index.lock file.
- name: Fetch submodules
run: git submodule update --init --force --depth=1 --jobs 1
with:
submodules: 'true'
# Continually update cache even if there's a "hit" during
# restore to avoid the cache going stale over time

View File

@ -51,13 +51,18 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Prepare workspace
if: ${{ matrix.os-arch == 'ubuntu-x86_64' }}
run: |
# Clear the workspace directory so that we don't run into errors about
# existing lock files.
sudo rm -rf $GITHUB_WORKSPACE/*
- name: Checkout torch-mlir
uses: actions/checkout@v3
# We fetch the submodules sequentially to prevent multiple threads from
# trampling the index.lock file.
- name: Fetch submodules
run: git submodule update --init --force --depth=1 --jobs 1
with:
submodules: 'true'
- name: Fetch PyTorch commit hash
if: ${{ matrix.os-arch != 'windows-x86_64' }}

View File

@ -25,12 +25,17 @@ jobs:
py_version: cp310-cp310
steps:
- name: Prepare workspace
run: |
# Clear the workspace directory so that we don't run into errors about
# existing lock files.
sudo rm -rf $GITHUB_WORKSPACE/*
- name: Get torch-mlir
uses: actions/checkout@v3
# We fetch the submodules sequentially to prevent multiple threads from
# trampling the index.lock file.
- name: Fetch submodules
run: git submodule update --init --force --depth=1 --jobs 1
with:
submodules: 'true'
- uses: ./.github/actions/setup-build
with:
cache-suffix: 'release'
@ -88,10 +93,8 @@ jobs:
steps:
- name: Get torch-mlir
uses: actions/checkout@v3
# We fetch the submodules sequentially to prevent multiple threads from
# trampling the index.lock file.
- name: Fetch submodules
run: git submodule update --init --force --depth=1 --jobs 1
with:
submodules: 'true'
- uses: ./.github/actions/setup-build
with:
cache-suffix: 'release'
@ -150,10 +153,8 @@ jobs:
steps:
- name: Get torch-mlir
uses: actions/checkout@v3
# We fetch the submodules sequentially to prevent multiple threads from
# trampling the index.lock file.
- name: Fetch submodules
run: git submodule update --init --force --depth=1 --jobs 1
with:
submodules: 'true'
- uses: ./.github/actions/setup-build
with:
cache-suffix: 'release'

View File

@ -13,6 +13,11 @@ jobs:
if: github.repository == 'llvm/torch-mlir'
steps:
- name: Prepare workspace
run: |
# Clear the workspace directory so that we don't run into errors about
# existing lock files.
sudo rm -rf $GITHUB_WORKSPACE/*
- name: Checking out repository
uses: actions/checkout@v3
with:

View File

@ -10,6 +10,12 @@ jobs:
# Don't run this in everyone's forks.
if: github.repository == 'llvm/torch-mlir'
steps:
- name: Prepare workspace
run: |
# Clear the workspace directory so that we don't run into errors about
# existing lock files.
sudo rm -rf $GITHUB_WORKSPACE/*
- name: Checking out repository
uses: actions/checkout@v3
with:

View File

@ -14,6 +14,12 @@ jobs:
if: github.repository == 'llvm/torch-mlir'
steps:
- name: Prepare workspace
run: |
# Clear the workspace directory so that we don't run into errors about
# existing lock files.
sudo rm -rf $GITHUB_WORKSPACE/*
- name: Checking out repository
uses: actions/checkout@v3
with: