Skip to content

Commit 57e245e

Browse files
authored
Add test verbosity (#711)
1 parent a46810d commit 57e245e

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
steps:
2727
- name: Cancel Previous Runs
28-
uses: styfle/[email protected].0
28+
uses: styfle/[email protected].1
2929
with:
3030
access_token: ${{ github.token }}
3131

@@ -37,17 +37,17 @@ jobs:
3737
activate-environment: imex-devel
3838

3939
- name: Conda info
40-
shell: bash -l {0}
40+
shell: bash -le {0}
4141
run: conda info
4242

4343
- name: Install Build tools
44-
shell: bash -l {0}
44+
shell: bash -le {0}
4545
run: |
4646
conda install cmake ninja conda-forge::lit conda-forge::doxygen
4747
conda list
4848
4949
- name: Checkout repo
50-
uses: actions/checkout@v3
50+
uses: actions/checkout@v4
5151
with:
5252
fetch-depth: 0
5353

@@ -59,7 +59,7 @@ jobs:
5959
6060
- name: Cache LLLVM-MLIR
6161
id: cache-llvm-mlir
62-
uses: actions/cache@v3
62+
uses: actions/cache@v4
6363
env:
6464
LLVM_CACHE_NUMBER: 1 # Increase to reset cache
6565
with:
@@ -69,17 +69,17 @@ jobs:
6969

7070
- name: Build LLVM-MLIR
7171
if: steps.cache-llvm-mlir.outputs.cache-hit != 'true'
72-
shell: bash -l {0}
72+
shell: bash -el {0}
7373
timeout-minutes: 420
7474
run: |
7575
mkdir -p /home/runner/work/llvm-mlir
7676
pushd /home/runner/work/llvm-mlir
7777
echo "INFO: Need to rebuild LLVM-MLIR. Previous installation for MLIR not found"
7878
np=`nproc`
7979
echo "INFO: nproc $np"
80-
git clone https://github.com/llvm/llvm-project --branch main --single-branch || exit 1
81-
cd llvm-project || exit 1
82-
git checkout ${LLVM_SHA} || exit 1
80+
git clone https://github.com/llvm/llvm-project --branch main --single-branch
81+
cd llvm-project
82+
git checkout ${LLVM_SHA}
8383
if [ -d "/home/runner/work/mlir-extensions/mlir-extensions/build_tools/patches" ]; then git apply /home/runner/work/mlir-extensions/mlir-extensions/build_tools/patches/*.patch; fi
8484
cmake -G Ninja -B _build -S llvm \
8585
-DCMAKE_BUILD_TYPE=MinSizeRel \
@@ -90,24 +90,25 @@ jobs:
9090
-DLLVM_TARGETS_TO_BUILD=X86 \
9191
-DLLVM_ENABLE_BINDINGS=OFF \
9292
-DLLVM_ENABLE_ZSTD=OFF \
93-
-DCMAKE_INSTALL_PREFIX=/home/runner/work/llvm-mlir/_mlir_install || exit 1
94-
cmake --build _build --target install || exit 1
93+
-DCMAKE_INSTALL_PREFIX=/home/runner/work/llvm-mlir/_mlir_install
94+
cmake --build _build --target install
9595
popd
9696
9797
- name: Build IMEX and run lit tests
98-
shell: bash -l {0}
98+
shell: bash -le {0}
9999
run: |
100100
external_lit=`which lit`
101101
echo ${external_lit}
102-
cd /home/runner/work/mlir-extensions/mlir-extensions || exit 1
102+
cd /home/runner/work/mlir-extensions/mlir-extensions
103103
cmake -S . -B _build -GNinja \
104104
-DCMAKE_BUILD_TYPE=Release \
105105
-DLLVM_EXTERNAL_LIT=${external_lit} \
106-
-DMLIR_DIR=/home/runner/work/llvm-mlir/_mlir_install/lib/cmake/mlir || exit 1
107-
cmake --build _build --target check-imex || exit 1
106+
-DMLIR_DIR=/home/runner/work/llvm-mlir/_mlir_install/lib/cmake/mlir \
107+
-DLLVM_LIT_ARGS=-a
108+
cmake --build _build --target check-imex
108109
109110
- name: Build doxygen docs
110-
shell: bash -l {0}
111+
shell: bash -le {0}
111112
run: |
112-
cd /home/runner/work/mlir-extensions/mlir-extensions || exit 1
113-
cmake --build _build --target doc_doxygen || exit 1
113+
cd /home/runner/work/mlir-extensions/mlir-extensions
114+
cmake --build _build --target doc_doxygen

0 commit comments

Comments
 (0)