8000 ci releases for mac and linux · codealchemist/alpaca.cpp@7e12661 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7e12661

Browse files
committed
ci releases for mac and linux
1 parent 501a8e1 commit 7e12661

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,24 @@ jobs:
3636
run: |
3737
make
3838
39+
- name: Pack artifacts
40+
id: pack_artifacts
41+
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
42+
run: |
43+
zip alpaca-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-linux-x64.zip chat
44+
45+
- name: Upload release
46+
id: upload_release
47+
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
48+
uses: actions/upload-release-asset@v1
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
with:
52+
upload_url: ${{ steps.create_release.outputs.upload_url }}
53+
asset_path: .\alpaca-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-linux-x64.zip
54+
asset_name: alpaca-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-linux-x64.zip
55+
asset_content_type: application/octet-stream
56+
3957
macOS-latest:
4058
runs-on: macOS-latest
4159

@@ -54,6 +72,24 @@ jobs:
5472
run: |
5573
make
5674
75+
- name: Pack artifacts
76+
id: pack_artifacts
77+
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
78+
run: |
79+
zip alpaca-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-mac-x64.zip chat
80+
81+
- name: Upload release
82+
id: upload_release
83+
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
84+
uses: actions/upload-release-asset@v1
85+
env:
86+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87+
with:
88+
upload_url: ${{ steps.create_release.outputs.upload_url }}
89+
asset_path: .\alpaca-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-mac-x64.zip
90+
asset_name: alpaca-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-mac-x64.zip
91+
asset_content_type: application/octet-stream
92+
5793
windows-latest:
5894
runs-on: windows-latest
5995

0 commit comments

Comments
 (0)
0