Skip to content

Commit

Permalink
build: tidy & add cleanup for actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lljbash committed Feb 4, 2024
1 parent 290254f commit eba42ab
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ on:
pull_request:

env:
DEEPLINK_PATH: /mnt/cache/share/deeplinkci/github/${{ github.repository }}
ENV_SOURCE: /mnt/cache/share/platform/env/dipu_latest
PROXY_SOURCE: /mnt/cache/share/platform/env/proxy
WORKSPACE: /mnt/cache/share/deeplinkci/github/${{ github.repository }}/${{ github.run_number }}
CODE_SOURCE: source
CLANGD_TIDY_SOURCE: clangd-tidy
CLANGD_EXEC: /mnt/cache/share/platform/dep/clang-17/bin/clangd
WORKSPACE: /mnt/cache/share/deeplinkci/github/${{ github.repository }}/${{ github.run_number }}
CODE_SOURCE: /mnt/cache/share/deeplinkci/github/${{ github.repository }}/${{ github.run_number }}/source
CLANGD_TIDY_SOURCE: /mnt/cache/share/deeplinkci/github/${{ github.repository }}/${{ github.run_number }}/clangd-tidy

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -24,6 +25,13 @@ jobs:
name: checkout code
runs-on: tps-sco-ci
steps:
- name: clean obsolete workspaces
run: |
set -euxo pipefail
ls -la ${DEEPLINK_PATH}
rm -rf ${WORKSPACE}
find ${DEEPLINK_PATH} -maxdepth 1 -mmin +60 -type d -exec echo clean {} \&\& echo {} ok \;
false
- name: prepare workspace
run: |
set -euxo pipefail
Expand Down

0 comments on commit eba42ab

Please sign in to comment.