misc: Update where runners are cleaned in workflow files
This moves the clean runner step in our yaml files to be at the beginning of a job, so that if a runner goes down and is unable to clean at the end, we can ensure that subsequent jobs still run as expected. Change-Id: Iba52694aefe03c550ad0bfdb5b5f938305273988
This commit is contained in:
11
.github/workflows/ci-tests.yaml
vendored
11
.github/workflows/ci-tests.yaml
vendored
@@ -79,6 +79,11 @@ jobs:
|
||||
needs: [pre-commit, build-gem5, check-for-change-id]
|
||||
timeout-minutes: 360 # 6 hours
|
||||
steps:
|
||||
- name: Clean runner
|
||||
run:
|
||||
rm -rf ./* || true
|
||||
rm -rf ./.??* || true
|
||||
rm -rf ~/.cache || true
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
@@ -102,10 +107,4 @@ jobs:
|
||||
name: ${{ env.MY_STEP_VAR }}
|
||||
path: output.zip
|
||||
retention-days: 7
|
||||
- name: Clean runner
|
||||
if: success() || failure()
|
||||
run:
|
||||
rm -rf ./* || true
|
||||
rm -rf ./.??* || true
|
||||
rm -rf ~/.cache || true
|
||||
- run: echo "This job's status is ${{ job.status }}."
|
||||
|
||||
Reference in New Issue
Block a user