Skip to content

Commit

Permalink
Minor updates to exclude cuh files
Browse files Browse the repository at this point in the history
  • Loading branch information
PointKernel committed Oct 15, 2024
1 parent d9dbe15 commit 1b987be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/check_godbolt.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ def main():
example_files = []
for root, _, files in os.walk(os.path.join(repo_root, EXAMPLES_DIR)):
for file_name in files:
if file_name.endswith('.cu') or file_name.endswith('.cuh'):
if file_name.endswith('.cu'):
example_files.append(os.path.relpath(os.path.join(root, file_name), repo_root))
else:
# Get the list of changed files between the current branch and the 'dev' branch
changed_files = current_branch.commit.diff(dev_branch.commit)
example_files = [diff.b_path for diff in changed_files if diff.b_path.startswith(EXAMPLES_DIR) and (diff.b_path.endswith('.cu') or diff.b_path.endswith('.cuh'))]
example_files = [diff.b_path for diff in changed_files if diff.b_path.startswith(EXAMPLES_DIR) and (diff.b_path.endswith('.cu'))]

# Iterate through the example files and create short links
for file_path in example_files:
Expand Down

0 comments on commit 1b987be

Please sign in to comment.