This commit is contained in:
James Ravenscroft 2023-06-13 21:22:46 +01:00
parent f43c0d4034
commit 0f8ccb9659
3 changed files with 40 additions and 2 deletions

View File

@ -262,8 +262,8 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
run: |
cd ${{github.workspace}}\\ggml\\build\\bin\\Release\\
7z a turbopilot-${{ runner.os }}-${{ runner.arch }}.zip ./codegen*
cd ${{github.workspace}}\ggml\build\bin\\Release\
7z a ${{github.workspace}}\ggml\build\bin\\Release\turbopilot-${{ runner.os }}-${{ runner.arch }}.zip ./codegen*
- name: Upload binaries to release
uses: softprops/action-gh-release@v1

38
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,38 @@
name: Build on Commit
on:
push:
branches: [ '**' ]
tags: ['**']
pull_request:
branches: [ "main" ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
test:
runs-on: windows-latest
steps:
- name: Clone
id: checkout
uses: actions/checkout@v3
with:
submodules: true
- name: package artifacts for release
run: |
cd ${{github.workspace}}\ggml
7z a ${{github.workspace}}\ggml\build\bin\\Release\turbopilot-${{ runner.os }}-${{ runner.arch }}.zip *.md
- name: Upload binaries to release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.PUBLISH_TOKEN }}
files: ${{github.workspace}}\ggml\build\bin\Release\turbopilot-${{ runner.os }}-${{ runner.arch }}.zip