Skip to content

Commit

Permalink
[CI] Move clang-format and buildifer steps before build and test (#5)
Browse files Browse the repository at this point in the history
To allow early failures especially since builds can take a lot longer.
  • Loading branch information
sjain-stanford authored Oct 15, 2023
1 parent d69bc22 commit 0c24c34
Showing 1 changed file with 16 additions and 16 deletions.
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

0 comments on commit 0c24c34

Please sign in to comment.