change some word to English #17
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: C++ Build with CMake and vcpkg | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build_ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y gcc g++ cmake | |
sudo apt-get install nasm | |
- name: Cmake Version | |
run: | | |
cmake --version | |
- name: Configure CMake | |
run: | | |
cmake -B cmake-build-release | |
- name: Build | |
run: cmake --build cmake-build-release --config Release -- -j 12 | |
- name: Copy Additional Files | |
run: cp ./ggml-metal.metal cmake-build-release | |
- name: Archive Build Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: cmake-build-release-ubuntu-latest | |
path: cmake-build-release/ | |
build_macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Dependencies | |
run: | | |
brew install cmake | |
brew install nasm | |
- name: Cmake Version | |
run: | | |
cmake --version | |
- name: Setup vcpkg | |
run: | | |
export VCPKG_HOME=$PWD/thirdparty/vcpkg | |
echo $VCPKG_HOME | |
$VCPKG_HOME/bootstrap-vcpkg.sh | |
- name: Configure CMake | |
run: | | |
export VCPKG_HOME=$PWD/thirdparty/vcpkg | |
cmake -B cmake-build-release -DCMAKE_TOOLCHAIN_FILE=$VCPKG_HOME/scripts/buildsystems/vcpkg.cmake | |
- name: Build | |
run: cmake --build cmake-build-release --config Release -- -j | |
- name: Copy Additional Files | |
run: cp ./ggml-metal.metal cmake-build-release | |
- name: Archive Build Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: cmake-build-release-macos-latest | |
path: cmake-build-release/ |