iOS, fix build issues with new XCode and wetextprocessing #717
Workflow file for this run
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
name: Build Runtime | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- 'runtime/**' | |
env: | |
RUNTIME_DIR: runtime/libtorch | |
FC_BASE_DIR: runtime/libtorch/fc_base | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache FC Base | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.FC_BASE_DIR }} | |
key: ${{ runner.os }}-fc-base | |
- uses: hendrikmuhs/[email protected] | |
with: | |
key: ${{ runner.os }}-build | |
- name: Build | |
run: | | |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" | |
cd ${{ env.RUNTIME_DIR }} | |
cmake -B build -DCMAKE_BUILD_TYPE=Release | |
cmake --build build -j$(nproc) |