From 9482a4c112e5f4c4d35ccc9188080f12291e3023 Mon Sep 17 00:00:00 2001 From: Sambhav Jain Date: Sat, 14 Oct 2023 11:04:04 -0700 Subject: [PATCH] move quick workflow steps before build and test --- .github/workflows/bazelBuildAndTestTcp.yml | 32 +++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/bazelBuildAndTestTcp.yml b/.github/workflows/bazelBuildAndTestTcp.yml index 973cd56b..037b83a3 100644 --- a/.github/workflows/bazelBuildAndTestTcp.yml +++ b/.github/workflows/bazelBuildAndTestTcp.yml @@ -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 \ @@ -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.