Skip to content

Commit

Permalink
- fix: windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
agallardol committed Mar 4, 2024
1 parent d8dc6bb commit 46b59b7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,22 @@ jobs:

# - name: Upload binaries to release
# uses: svenstaro/upload-release-action@v2
# env:
# EXTENSION: ${{ matrix.arch == 'x86_64-pc-windows-msvc' && '.exe' || '' }}
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: target/release/shinkai_node
# asset_name: shinkai-node-${{ matrix.arch }}
# asset_name: shinkai-node-${{ matrix.arch }}${{ env.EXTENSION }}
# tag: ${{ github.ref }}
# overwrite: true

- name: Build
- name: Prepare binary files
env:
EXTENSION: ${{ matrix.arch == 'x86_64-pc-windows-msvc' && '.exe' || '' }}
run: |
mkdir files-to-r2/${{ matrix.arch }}
cp target/release/shinkai_node files-to-r2/${{ matrix.arch }}/shinkai-node-0.4.7
cp target/release/shinkai_node files-to-r2/${{ matrix.arch }}/shinkai-node-latest
cp target/release/shinkai_node${{ env.EXTENSION }} files-to-r2/${{ matrix.arch }}/shinkai-node-0.4.7${{ env.EXTENSION }}
cp target/release/shinkai_node${{ env.EXTENSION }} files-to-r2/${{ matrix.arch }}/shinkai-node-latest${{ env.EXTENSION }}
- name: Upload binaries to R2 bucket
uses: ryand56/r2-upload-action@latest
Expand Down

0 comments on commit 46b59b7

Please sign in to comment.