• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: Teardown XPU host
2
3description: Tear down XPU host for CI
4
5runs:
6  using: composite
7  steps:
8    - name: Teardown XPU
9      if: always()
10      shell: bash
11      run: |
12        # Prune all stopped containers.
13        # If other runner is pruning on this node, will skip.
14        nprune=$(ps -ef | grep -c "docker container prune")
15        if [[ $nprune -eq 1 ]]; then
16          docker container prune -f
17        fi
18    - name: Runner diskspace health check
19      uses: ./.github/actions/diskspace-cleanup
20      if: always()
21