Skip to content

Commit

Permalink
Fix ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
jerinphilip committed Oct 28, 2023
1 parent 252d411 commit a948e4c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ jobs:
PYTHON_LOCAL_VERSION_IDENTIFIER=${{ env.PYTHON_LOCAL_VERSION_IDENTIFIER }}
CCACHE_DIR=/host/${{ env.ccache_dir }}
CCACHE_BASEDIR=/host/${{ env.ccache_basedir }}
CMAKE_ARGS="-DUSE_PYBIND11_SOURCE=ON -DBLA_VENDOR=OpenBLAS -DUSE_BUILTIN_SENTENCEPIECE=ON -DWITH_GEMMOLOGY=OFF -DWITH_INTGEMM=ON -DUSE_AVX2=ON -DUSE_SSE2=ON"
CMAKE_ARGS="-DUSE_PYBIND11_SOURCE=ON -DBLA_VENDOR=OpenBLAS -DUSE_BUILTIN_SENTENCEPIECE=ON -DWITH_GEMMOLOGY=OFF -DWITH_INTGEMM=ON -DUSE_AVX2=ON -DUSE_SSE2=ON -DCMAKE_BUILD_TYPE=Debug -DWITH_ASAN=ON"

CIBW_ENVIRONMENT_MACOS:
USE_CCACHE=1
Expand Down
5 changes: 4 additions & 1 deletion scripts/ci/macos/02-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ ARGS=(
-DWITH_GEMMOLOGY=ON
-DUSE_AVX2=ON -DUSE_SSE2=ON
-DUSE_BUILTIN_SENTENCEPIECE=OFF

-DCMAKE_BUILD_TYPE=Debug
-DWITH_ASAN=ON
)

cmake -B build -S $PWD -DCMAKE_BUILD_TYPE=Release "${ARGS[@]}"
cmake -B build -S $PWD "${ARGS[@]}"

# Build
cmake --build build --target all
8 changes: 7 additions & 1 deletion scripts/ci/ubuntu/02-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@ ARGS=(
-DWITH_GEMMOLOGY=ON
-DUSE_AVX512=OFF -DUSE_AVX2=ON -DUSE_SSSE3=ON -DUSE_SSE2=ON
-DWITH_BLAS=ON

# TODO(jerinphilip) Adjust, later.
-DCMAKE_BUILD_TYPE=Debug
-DWITH_ASAN=ON

-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
)

set -x

# Configure
cmake -B build -S $PWD -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON "${ARGS[@]}"
cmake -B build -S $PWD "${ARGS[@]}"

# Build
cmake --build build --target all

0 comments on commit a948e4c

Please sign in to comment.