diff --git a/.github/workflows/build-commit.yml b/.github/workflows/build-commit.yml index a5039ff..5c0e00d 100644 --- a/.github/workflows/build-commit.yml +++ b/.github/workflows/build-commit.yml @@ -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. diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 4b407fb..0954a0d 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -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" \ No newline at end of file