Skip to content

Commit

Permalink
Try on the pipeline again
Browse files Browse the repository at this point in the history
  • Loading branch information
tachyonicbytes committed Jan 25, 2024
1 parent 25660d9 commit 178f27f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/tauri_bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-20.04]
platform: [macos-latest]
# platform: [macos-latest, ubuntu-20.04, windows-latest]


runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
Expand All @@ -37,7 +36,20 @@ jobs:
version: 8

- name: install frontend dependencies
run: cd ./generator/ && pnpm install --no-frozen-lockfile && pnpm build && cd .. && cd ./clients/typescript/ && pnpm install --no-frozen-lockfile && pnpm build && cd ../../ && cd ./examples/tauri-postgres/ && pnpm install --no-frozen-lockfile && pnpm backend:up && sleep 5 && pnpm db:migrate && sleep 5 && pnpm run client:generate && sleep 5 && bash patch.sh && pnpm install --no-frozen-lockfile # change this to npm or pnpm depending on which one you use
run: |
cd ./generator/
pnpm install --no-frozen-lockfile
pnpm build
cd ..
cd ./clients/typescript/
pnpm install --no-frozen-lockfile
pnpm build
cd ../../
cd ./examples/tauri-postgres/
pnpm install --no-frozen-lockfile
pnpm run tauri:build
pnpm install --no-frozen-lockfile # change this to npm or pnpm depending on which one you use
bash demo-darwin.sh
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
18 changes: 16 additions & 2 deletions examples/tauri-postgres/demo-darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@ git_clone() {
pnpm install && pnpm run tauri:package
}

# Clone the sources
git_clone_third_parties() {
mkdir -p src-tauri/crates/ && cd src-tauri/crates/
git clone https://github.com/pepperoni21/ollama-rs # Solves a bug where in Cargo.toml `git` would still not work as expected
cd ollama-rs && git checkout f610472689ec113689ab06fb58304ec723c93111 && cd ..
git clone https://github.com/faokunega/pg-embed # We need to modify this in order to have a different location for postgres
cd pg-embed
git apply ../../../pg-embed.patch
cd ../../..
pnpm install && pnpm run tauri:package
}


# Install ollama
# gives us src-tauri/ollama-darwin-aarch64-apple-darwin
install_ollama() {
Expand Down Expand Up @@ -92,9 +105,10 @@ build_the_app() {
# echo "Not implemented"
# }

git_clone
# git_clone
git_clone_third_parties
install_ollama
install_postgres
install_onnxruntime
build_the_app
# build_the_app
# run_the_demo

0 comments on commit 178f27f

Please sign in to comment.