-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add iOS and armv8 build (#1014) Co-authored-by: Nikolay Bogoychev <[email protected]> Co-authored-by: Varun Mathur <[email protected]>
- Loading branch information
Showing
20 changed files
with
1,435 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: iOS | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build-macos: | ||
name: iOS CPU-only | ||
runs-on: macos-12 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install dependencies | ||
run: brew install boost openblas openssl protobuf | ||
|
||
- name: Configure CMake | ||
run: | | ||
export LDFLAGS="-L/usr/local/opt/openblas/lib" | ||
export CPPFLAGS="-I/usr/local/opt/openblas/include" | ||
mkdir -p build | ||
cd build | ||
cmake .. \ | ||
-DCOMPILE_CPU=on \ | ||
-DCOMPILE_CUDA=off \ | ||
-DCOMPILE_EXAMPLES=on \ | ||
-DCOMPILE_SERVER=off \ | ||
-DCOMPILE_TESTS=on \ | ||
-DUSE_SENTENCEPIECE=on \ | ||
-DCMAKE_TOOLCHAIN_FILE=../cmake/ios.toolchain.cmake \ | ||
-DUSE_SENTENCEPIECE=on \ | ||
-DPLATFORM=OS64 \ | ||
-DDEPLOYMENT_TARGET=13.0 | ||
- name: Compile | ||
working-directory: build | ||
run: cmake --build . --config Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.