mirror of
https://github.com/ravenscroftj/turbopilot.git
synced 2024-07-01 00:31:27 +00:00
attempt to build universal arhc
This commit is contained in:
parent
f68d82f4d8
commit
559fbbe780
60
.github/workflows/build-commit.yml
vendored
60
.github/workflows/build-commit.yml
vendored
|
@ -13,7 +13,8 @@ env:
|
|||
|
||||
jobs:
|
||||
|
||||
build-macos-arm:
|
||||
|
||||
build-macOS:
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
|
@ -30,62 +31,7 @@ jobs:
|
|||
id: make_build
|
||||
run: |
|
||||
cd ${{github.workspace}}/ggml
|
||||
cmake -B ${{github.workspace}}/ggml/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -D CMAKE_OSX_ARCHITECTURES="-arch;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.
|
||||
|
||||
- name: package artifacts for release
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
|
||||
run: |
|
||||
cd ${{github.workspace}}/ggml/build/bin
|
||||
zip turbopilot-${{ runner.os }}-arm64.zip ./codegen*
|
||||
|
||||
- name: Upload binaries to release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
token: ${{ secrets.PUBLISH_TOKEN }}
|
||||
files: ${{github.workspace}}/ggml/build/bin/turbopilot-${{ runner.os }}-arm64.zip
|
||||
|
||||
|
||||
|
||||
build-macOS-x86:
|
||||
runs-on: 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}}
|
||||
cmake -B ${{github.workspace}}/ggml/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_OSX_ARCHITECTURES=arm64;x86_64
|
||||
cd ${{github.workspace}}/ggml/build
|
||||
make codegen codegen-serve codegen-quantize
|
||||
chmod +x ${{github.workspace}}/ggml/build/bin/codegen
|
||||
|
|
Loading…
Reference in New Issue
Block a user