try to fix builds

This commit is contained in:
James Ravenscroft 2023-04-14 08:56:14 +01:00
parent ca5a73ce24
commit 4c7a08f971
2 changed files with 10 additions and 22 deletions

View File

@ -39,14 +39,6 @@ jobs:
chmod +x ${{github.workspace}}/ggml/build/bin/codegen-quantize
- name: Prepare Build Artifacts
run: |
zip ${{github.workspace}}/ggml/build/bin/build.zip \
${{github.workspace}}/ggml/build/bin/codegen \
${{github.workspace}}/ggml/build/bin/codegen-serve \
${{github.workspace}}/ggml/build/bin/codegen-quantize \
- uses: benjlevesque/short-sha@v2.2
id: short-sha
with:
@ -61,9 +53,16 @@ jobs:
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: zip ${{github.workspace}}/ggml/build/bin/turbopilot-${{ 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: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
token: ${{ secrets.PUBLISH_TOKEN }}
files: ${{github.workspace}}/ggml/build/bin/codegen*
files: ${{github.workspace}}/ggml/build/bin/turbopilot-${{ runner.os }}-${{ runner.arch }}.zip

View File

@ -52,18 +52,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
with:
push: true
tags: ghcr.io/ravenscroftj/turbopilot:${{ github.ref }}
tags: ghcr.io/ravenscroftj/turbopilot:${{ github.ref_name }}
context: ${{github.workspace}}
platforms: linux/amd64,linux/arm64
# - name: Publish Docker Image to GitHub Registry
# # You may pin to the exact commit or the version.
# # uses: TilBlechschmidt/gp-docker-action@f89287d44556dd7d24f76c799cd0795eeb352bcf
# uses: TilBlechschmidt/gp-docker-action@v0.2-alpha
# with:
# # GitHub token to push Docker image to GitHub Packages
# github-token: ${{ secrets.GH_TOKEN }}
# # Docker Image name
# image-name: turbopilot
# # Path to the directory where the Dockerfile resides
# dockerfile-path: . # optional, default is .