fix build

This commit is contained in:
James Ravenscroft 2023-04-14 07:19:58 +01:00
parent 67b84eb94c
commit 99590c678d
2 changed files with 23 additions and 7 deletions

View File

@ -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.

View File

@ -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"