Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Move clang-format and buildifer steps before build and test #5

Merged
merged 2 commits into from
Oct 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions .github/workflows/bazelBuildAndTestTcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,6 @@ jobs:
-t mlir-tcp:ci \
.

- name: Bazel build mlir-tcp
run: |
docker run --rm \
-v "$(pwd)":"/opt/src/mlir-tcp" \
-v "${HOME}/.cache/bazel":"/root/.cache/bazel" \
mlir-tcp:ci \
bazel build --config=clang_linux //:tcp-opt

- name: Bazel test mlir-tcp (lit tests)
run: |
docker run --rm \
-v "$(pwd)":"/opt/src/mlir-tcp" \
-v "${HOME}/.cache/bazel":"/root/.cache/bazel" \
mlir-tcp:ci \
bazel test --config=clang_linux //test/...

- name: Verify clang-format was run (cpp lint)
run: |
docker run --rm \
Expand All @@ -97,6 +81,22 @@ jobs:
exit 1
fi

- name: Bazel build mlir-tcp
run: |
docker run --rm \
-v "$(pwd)":"/opt/src/mlir-tcp" \
-v "${HOME}/.cache/bazel":"/root/.cache/bazel" \
mlir-tcp:ci \
bazel build --config=clang_linux //:tcp-opt

- name: Bazel test mlir-tcp (lit tests, aot compile tests)
run: |
docker run --rm \
-v "$(pwd)":"/opt/src/mlir-tcp" \
-v "${HOME}/.cache/bazel":"/root/.cache/bazel" \
mlir-tcp:ci \
bazel test --config=clang_linux //test/...

# Switch back bazel cache directory to user ownership
# to allow GHA post-cache step to save cache without
# permissions issue.
Expand Down