-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f14655b
commit e2d9f1a
Showing
5 changed files
with
27 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,22 +73,11 @@ jobs: | |
run: | | ||
mkdir -p nitro | ||
cp build/nitro nitro/ | ||
zip -r nitro.zip nitro | ||
tar -czvf nitro.tar.gz nitro | ||
# run e2e testing | ||
cd nitro | ||
chmod +x ../.github/scripts/e2e-test-linux-and-mac.sh && ../.github/scripts/e2e-test-linux-and-mac.sh ./nitro ${{ env.MODEL_URL }} | ||
- uses: actions/[email protected] | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ needs.create-draft-release.outputs.upload_url }} | ||
asset_path: ./nitro.zip | ||
asset_name: nitro-${{ needs.create-draft-release.outputs.version }}-linux-amd64.zip | ||
asset_content_type: application/zip | ||
|
||
- uses: actions/[email protected] | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | ||
env: | ||
|
@@ -132,22 +121,11 @@ jobs: | |
run: | | ||
mkdir -p nitro | ||
cp build/nitro nitro/ | ||
zip -r nitro.zip nitro | ||
tar -czvf nitro.tar.gz nitro | ||
# run e2e testing | ||
cd nitro | ||
chmod +x ../.github/scripts/e2e-test-linux-and-mac.sh && ../.github/scripts/e2e-test-linux-and-mac.sh ./nitro ${{ env.MODEL_URL }} | ||
- uses: actions/[email protected] | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ needs.create-draft-release.outputs.upload_url }} | ||
asset_path: ./nitro.zip | ||
asset_name: nitro-${{ needs.create-draft-release.outputs.version }}-linux-amd64-cuda.zip | ||
asset_content_type: application/zip | ||
|
||
- uses: actions/[email protected] | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | ||
env: | ||
|
@@ -193,22 +171,11 @@ jobs: | |
mkdir -p nitro | ||
cp llama.cpp/ggml-metal.metal nitro/ | ||
cp build/nitro nitro/ | ||
zip -r nitro.zip nitro | ||
tar -czvf nitro.tar.gz nitro | ||
# run e2e testing | ||
cd nitro | ||
chmod +x ../.github/scripts/e2e-test-linux-and-mac.sh && ../.github/scripts/e2e-test-linux-and-mac.sh ./nitro ${{ env.MODEL_URL }} | ||
- uses: actions/[email protected] | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ needs.create-draft-release.outputs.upload_url }} | ||
asset_path: ./nitro.zip | ||
asset_name: nitro-${{ needs.create-draft-release.outputs.version }}-mac-arm64.zip | ||
asset_content_type: application/zip | ||
|
||
- uses: actions/[email protected] | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | ||
env: | ||
|
@@ -252,21 +219,11 @@ jobs: | |
run: | | ||
mkdir -p nitro | ||
cp build/nitro nitro/ | ||
zip -r nitro.zip nitro | ||
tar -czvf nitro.tar.gz nitro | ||
# run e2e testing | ||
cd nitro | ||
chmod +x ../.github/scripts/e2e-test-linux-and-mac.sh && ../.github/scripts/e2e-test-linux-and-mac.sh ./nitro ${{ env.MODEL_URL }} | ||
- uses: actions/[email protected] | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ needs.create-draft-release.outputs.upload_url }} | ||
asset_path: ./nitro.zip | ||
asset_name: nitro-${{ needs.create-draft-release.outputs.version }}-mac-amd64.zip | ||
asset_content_type: application/zip | ||
- uses: actions/[email protected] | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | ||
env: | ||
|
@@ -332,23 +289,11 @@ jobs: | |
run: | | ||
robocopy build_deps\_install\bin .\build\Release zlib.dll | ||
robocopy build\bin\Release .\build\Release llama.dll | ||
7z a nitro.zip .\build\Release\* | ||
7z a -ttar temp.tar .\build\Release\* | ||
7z a -tgzip nitro.tar.gz temp.tar | ||
cd .\build\Release | ||
..\..\.github\scripts\e2e-test-windows.bat .\nitro.exe ${{ env.MODEL_URL }} | ||
- uses: actions/[email protected] | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ needs.create-draft-release.outputs.upload_url }} | ||
asset_path: ./nitro.zip | ||
asset_name: nitro-${{ needs.create-draft-release.outputs.version }}-win-amd64.zip | ||
asset_content_type: application/zip | ||
|
||
|
||
- uses: actions/[email protected] | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | ||
env: | ||
|
@@ -404,21 +349,11 @@ jobs: | |
set PATH=%PATH%;C:\Program Files\7-Zip\ | ||
robocopy build_deps\_install\bin .\build\Release zlib.dll | ||
robocopy build\bin\Release .\build\Release llama.dll | ||
7z a nitro.zip .\build\Release\* | ||
7z a -ttar temp.tar .\build\Release\* | ||
7z a -tgzip nitro.tar.gz temp.tar | ||
cd .\build\Release | ||
..\..\.github\scripts\e2e-test-windows.bat .\nitro.exe ${{ env.MODEL_URL }} | ||
- uses: actions/[email protected] | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ needs.create-draft-release.outputs.upload_url }} | ||
asset_path: ./nitro.zip | ||
asset_name: nitro-${{ needs.create-draft-release.outputs.version }}-win-amd64-cuda.zip | ||
asset_content_type: application/zip | ||
- uses: actions/[email protected] | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters