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
2add8701
Unverified
Commit
2add8701
authored
Jan 09, 2023
by
Frank Lee
Committed by
GitHub
Jan 09, 2023
Browse files
[workflow] added missing file change detection output (#2387)
parent
4898ff8a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
.github/workflows/build.yml
.github/workflows/build.yml
+16
-5
No files found.
.github/workflows/build.yml
View file @
2add8701
...
...
@@ -14,18 +14,27 @@ jobs:
contains( github.event.pull_request.labels.*.name, 'Run Build and Test')
outputs
:
changedFiles
:
${{ steps.find-changed-files.outputs.changedFiles }}
anyChanged
:
${{ steps.find-changed-files.outputs.any_changed }}
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
with
:
fetch-depth
:
0
-
name
:
Find the changed files
id
:
find-changed-files
uses
:
tj-actions/changed-files@v3
4
uses
:
tj-actions/changed-files@v3
5
with
:
since_last_remote_commit
:
true
files
:
|
op_builder/**
colossalai/kernel/**
setup.py
-
name
:
List changed files
run
:
|
for file in ${{ steps.find-changed-files.outputs.all_changed_files }}; do
echo "$file was changed"
done
build
:
name
:
Build and Test Colossal-AI
...
...
@@ -54,9 +63,10 @@ jobs:
ssh-key
:
${{ secrets.SSH_KEY_FOR_CI }}
-
name
:
Restore cache
if
:
needs.detect.outputs.anyChanged
=
= 'true'
if
:
needs.detect.outputs.anyChanged
!
= 'true'
run
:
|
[ ! -z "$(ls -A /github/home/cuda_ext_cache/)" ] && cp -r /github/home/cuda_ext_cache/* /__w/ColossalAI/ColossalAI/
# -p flag is required to preserve the file timestamp to avoid ninja rebuild
[ ! -z "$(ls -A /github/home/cuda_ext_cache/)" ] && cp -p -r /github/home/cuda_ext_cache/* /__w/ColossalAI/ColossalAI/
-
name
:
Install Colossal-AI
run
:
|
...
...
@@ -73,4 +83,5 @@ jobs:
-
name
:
Store Cache
run
:
|
cp -r /__w/ColossalAI/ColossalAI/build /github/home/cuda_ext_cache/
# -p flag is required to preserve the file timestamp to avoid ninja rebuild
cp -p -r /__w/ColossalAI/ColossalAI/build /github/home/cuda_ext_cache/
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