Skip to content

Commit 43a4dcd

Browse files
committed
CI: Same build commands for test_pip_pkg and cpython_interop
It seems the CI job for cpython_interop completes much earlier compared to test_pip_pkg. Therefore using the same build commands for cpython_interop in test_pip_pkg.
1 parent 2068bf6 commit 43a4dcd

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

.github/workflows/CI.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -196,26 +196,30 @@ jobs:
196196
with:
197197
environment-file: ci/environment.yml
198198
create-args: >-
199+
python=3.10
199200
bison=3.4
200201
201202
- uses: hendrikmuhs/ccache-action@main
202203
with:
204+
variant: sccache
203205
key: ${{ github.job }}-${{ matrix.os }}
204206

205-
- name: Setup Platform (Linux)
206-
shell: bash -l {0}
207-
run: |
208-
echo "LFORTRAN_CMAKE_GENERATOR=Unix Makefiles" >> $GITHUB_ENV
209-
echo "WIN=0" >> $GITHUB_ENV
210-
echo "MACOS=0" >> $GITHUB_ENV
211-
echo "ENABLE_RUNTIME_STACKTRACE=yes" >> $GITHUB_ENV
212-
echo "CMAKE_C_COMPILER_LAUNCHER=ccache" >> $GITHUB_ENV
213-
echo "CMAKE_CXX_COMPILER_LAUNCHER=ccache" >> $GITHUB_ENV
214-
215207
- name: Build Linux
216208
shell: bash -l {0}
217209
run: |
218-
xonsh ci/build.xsh
210+
./build0.sh
211+
cmake . -GNinja \
212+
-DCMAKE_BUILD_TYPE=Debug \
213+
-DWITH_LLVM=yes \
214+
-DLFORTRAN_BUILD_ALL=yes \
215+
-DWITH_STACKTRACE=no \
216+
-DWITH_RUNTIME_STACKTRACE=yes \
217+
-DCMAKE_PREFIX_PATH="$CONDA_PREFIX" \
218+
-DCMAKE_INSTALL_PREFIX=`pwd`/inst \
219+
-DCMAKE_C_COMPILER_LAUNCHER=sccache \
220+
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache
221+
222+
cmake --build . -j16 --target install
219223
220224
- name: PIP show version
221225
shell: bash -l {0}

0 commit comments

Comments
 (0)