attempt arm build

This commit is contained in:
James Ravenscroft 2023-04-15 10:18:09 +01:00
parent 0726b41cb4
commit 7118a38c2d

View File

@ -13,8 +13,48 @@ env:
jobs:
build-macos-arm:
runs-on: macos-latest
build-macOS-latest:
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Dependencies
id: depends
run: |
brew update
brew install cmake boost
- name: Build
id: make_build
run: |
cd ${{github.workspace}}/ggml
cmake -B ${{github.workspace}}/ggml/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -D CMAKE_C_FLAGS="arm64"
cd ${{github.workspace}}/ggml/build
make codegen codegen-serve codegen-quantize
chmod +x ${{github.workspace}}/ggml/build/bin/codegen
chmod +x ${{github.workspace}}/ggml/build/bin/codegen-serve
chmod +x ${{github.workspace}}/ggml/build/bin/codegen-quantize
- uses: benjlevesque/short-sha@v2.2
id: short-sha
with:
length: 6
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3.1.2
with:
# Artifact name
name: turbopilot-${{ runner.os }}-arm64-${{ steps.short-sha.outputs.sha }} # optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
path: ${{github.workspace}}/ggml/build/bin/codegen*
# The desired behavior if no files are found using the provided path.
build-macOS-x86:
runs-on: macos-latest
steps: