Skip to content

Commit

Permalink
- fix: cicd and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
agallardol committed May 16, 2024
1 parent bb14e1a commit 5f0a417
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 7 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true

- name: get npm version
id: package-version
Expand Down Expand Up @@ -128,7 +127,6 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true

- name: (Windows) Install asiosdk
if: ${{ matrix.arch == 'x86_64-pc-windows-msvc' }}
Expand Down Expand Up @@ -196,6 +194,14 @@ jobs:
npm cache verify
npm ci --no-audit --prefer-offline
- name: Download side binaries
env:
ARCH: ${{ matrix.arch }}
SHINKAI_NODE_VERSION: v0.7.5
OLLAMA_VERSION: v0.1.38
run: |
npx ts-node ./ci-scripts/download-side-binaries.ts
- name: Adapt package version
run: |
npm version ${{ needs.prebuild.outputs.version }}${{ github.run_number }} --git-tag-version false
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/release-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true

- name: (Windows) Install asiosdk}
if: ${{ matrix.arch == 'x86_64-pc-windows-msvc' }}
Expand Down Expand Up @@ -193,6 +192,14 @@ jobs:
npm cache verify
npm ci --no-audit --prefer-offline
- name: Download side binaries
env:
ARCH: ${{ matrix.arch }}
SHINKAI_NODE_VERSION: v0.7.5
OLLAMA_VERSION: v0.1.38
run: |
npx ts-node ./ci-scripts/download-side-binaries.ts
- name: (Linux) Run NX build on shinkai-desktop
if: ${{ matrix.arch == 'x86_64-unknown-linux-gnu' }}
run: npx nx build shinkai-desktop --skip-nx-cache
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ qr_code_device_0.png
apps/shinkai-visor-e2e/test-report
apps/shinkai-desktop/src-tauri/storage
apps/shinkai-desktop/src-tauri/node_storage

apps/shinkai-desktop/src-tauri/bin/ollama-windows-resources/*
apps/shinkai-desktop/src-tauri/bin/*
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ To get started first clone this repo:

```
$ git clone https://github.com/dcSpark/shinkai-apps
# Download side binaries. IE:
ARCH="aarch64-apple-darwin" OLLAMA_VERSION="v0.1.38" SHINKAI_NODE_VERSION="v0.7.5" npx ts-node ./ci-scripts/download-side-binaries.ts
```

Once you have done that simply use `npm` to compile/serve it yourself:
Expand Down
42 changes: 39 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@
"vite-plugin-top-level-await": "^1.3.1",
"vite-plugin-wasm": "^3.2.2",
"vite-tsconfig-paths": "^4.2.3",
"vitest": "^0.34.3"
"vitest": "^0.34.3",
"zip-lib": "^1.0.4"
},
"dependencies": {
"@capacitor-community/barcode-scanner": "^4.0.1",
Expand Down

0 comments on commit 5f0a417

Please sign in to comment.