Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
4a81faa5
Unverified
Commit
4a81faa5
authored
Jun 19, 2023
by
Hongxin Liu
Committed by
GitHub
Jun 19, 2023
Browse files
[devops] fix build on pr ci (#4043)
* [devops] fix build on pr ci * [devops] fix build on pr ci
parent
a52f6208
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
.github/workflows/build_on_pr.yml
.github/workflows/build_on_pr.yml
+5
-5
No files found.
.github/workflows/build_on_pr.yml
View file @
4a81faa5
...
@@ -40,7 +40,7 @@ jobs:
...
@@ -40,7 +40,7 @@ jobs:
-
name
:
Copy testmon cache
-
name
:
Copy testmon cache
run
:
|
# branch name may contain slash, we need to replace it with space
run
:
|
# branch name may contain slash, we need to replace it with space
export REF_BRANCH=$(echo ${{ github.event.ref }} | sed "s/\// /")
export REF_BRANCH=$(echo ${{ github.event.ref }} | sed "s/\// /")
if [ -d /github/home/testmon_cache/${MAIN_BRANCH}
] && [ ! -z "$(ls -A /github/home/testmon_cache/${MAIN_BRANCH})"
]; then
if [ -d /github/home/testmon_cache/${MAIN_BRANCH} ]; then
cp -p -r /github/home/testmon_cache/${MAIN_BRANCH} "/github/home/testmon_cache/${REF_BRANCH}"
cp -p -r /github/home/testmon_cache/${MAIN_BRANCH} "/github/home/testmon_cache/${REF_BRANCH}"
fi
fi
env
:
env
:
...
@@ -67,8 +67,8 @@ jobs:
...
@@ -67,8 +67,8 @@ jobs:
-
name
:
Copy testmon cache
-
name
:
Copy testmon cache
run
:
|
# branch name may contain slash, we need to replace it with space
run
:
|
# branch name may contain slash, we need to replace it with space
export BASE=$(echo ${{ github.event.pull_request.base.ref }} | sed "s/\// /")
export BASE=$(echo ${{ github.event.pull_request.base.ref }} | sed "s/\// /")
if [ -d "/github/home/testmon_cache/${BASE}" ]
and
[ ! -z "$(ls -A "/github/home/testmon_cache/${BASE}")" ]; then
if [ -d "/github/home/testmon_cache/${BASE}" ]
&&
[ ! -z "$(ls -A "/github/home/testmon_cache/${BASE}")" ]; then
mkdir -p /github/home/testmon_cache/_pull && cp -p -r "/github/home/testmon_cache/${BASE}" /github/home/testmon_cache/_pull/${PR_NUMBER}
mkdir -p /github/home/testmon_cache/_pull
/${PR_NUMBER}
&& cp -p -r "/github/home/testmon_cache/${BASE}"
/.testmondata*
/github/home/testmon_cache/_pull/${PR_NUMBER}
fi
fi
env
:
env
:
PR_NUMBER
:
${{ github.event.number }}
PR_NUMBER
:
${{ github.event.number }}
...
@@ -200,8 +200,8 @@ jobs:
...
@@ -200,8 +200,8 @@ jobs:
-
name
:
Restore Testmon Cache
-
name
:
Restore Testmon Cache
run
:
|
run
:
|
if [ -d /github/home/testmon_cache/_pull/${PR_NUMBER} ]; then
if [ -d /github/home/testmon_cache/_pull/${PR_NUMBER}
] && [ ! -z "$(ls -A /github/home/testmon_cache/_pull/${PR_NUMBER})"
]; then
[ ! -z "$(ls -A /github/home/testmon_cache/_pull/${PR_NUMBER})" ] &&
cp -p -r /github/home/testmon_cache/_pull/${PR_NUMBER}/.testmondata* /__w/ColossalAI/ColossalAI/
cp -p -r /github/home/testmon_cache/_pull/${PR_NUMBER}/.testmondata* /__w/ColossalAI/ColossalAI/
fi
fi
env
:
env
:
PR_NUMBER
:
${{ github.event.number }}
PR_NUMBER
:
${{ github.event.number }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment