mirror of
https://github.com/ravenscroftj/turbopilot.git
synced 2024-07-01 00:31:27 +00:00
fix build
This commit is contained in:
parent
67b84eb94c
commit
99590c678d
4
.github/workflows/build-commit.yml
vendored
4
.github/workflows/build-commit.yml
vendored
|
@ -55,7 +55,7 @@ jobs:
|
|||
uses: actions/upload-artifact@v3.1.2
|
||||
with:
|
||||
# Artifact name
|
||||
name: turbopilot-${{env.RUNNER_OS}}-${{env.RUNNER_ARCH}}-${{ steps.short-sha.outputs.sha }} # optional, default is artifact
|
||||
name: turbopilot-${{ runner.os }}-${{ runner.arch }}-${{ 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/build.zip
|
||||
path: ${{github.workspace}}/ggml/build/bin/codegen*
|
||||
# The desired behavior if no files are found using the provided path.
|
||||
|
|
26
.github/workflows/build-release.yml
vendored
26
.github/workflows/build-release.yml
vendored
|
@ -33,11 +33,27 @@ jobs:
|
|||
cd ${{github.workspace}}/ggml
|
||||
cmake -B ${{github.workspace}}/ggml/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -D CMAKE_EXE_LINKER_FLAGS="-static"
|
||||
cd ${{github.workspace}}/ggml/build
|
||||
make codegen codegen-serve
|
||||
chmod +x ${{github.workspace}}/ggml/build/bin/codegen ${{github.workspace}}/ggml/build/bin/codegen-serve
|
||||
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
|
||||
|
||||
|
||||
- name: Create Release
|
||||
uses: ncipollo/release-action@v1
|
||||
|
||||
- name: Prepare Release
|
||||
run: |
|
||||
zip /${{github.workspace}}/ggml/build/bin/build_${RUNNER_OS}_${RUNNER_ARCH}.zip \
|
||||
${{github.workspace}}/ggml/build/bin/codegen \
|
||||
${{github.workspace}}/ggml/build/bin/codegen-serve \
|
||||
${{github.workspace}}/ggml/build/bin/codegen-quantize \
|
||||
|
||||
|
||||
- name: Upload binaries to release
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
artifacts: "${{github.workspace}}/ggml/build/bin/codegen,${{github.workspace}}/ggml/build/bin/codegen-serve"
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: target/release/mything
|
||||
asset_name: mything
|
||||
tag: ${{ github.ref }}
|
||||
overwrite: true
|
||||
body: "This is my release text"
|
Loading…
Reference in New Issue
Block a user