Skip to content

Commit

Permalink
fix cargo pointing to ui client
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Feria <[email protected]>
  • Loading branch information
carlosthe19916 committed Mar 2, 2025
1 parent 1fd5793 commit 7e98c07
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: server/ui/package-lock.json
- name: Install dependencies
uses: ./.github/actions/install-dependencies
- name: Install clippy
Expand All @@ -30,6 +35,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: server/ui/package-lock.json
- name: Install dependencies
uses: ./.github/actions/install-dependencies
- run: cargo test
Expand Down
6 changes: 3 additions & 3 deletions server/ui/crate/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ use std::{fs, io};

use static_files::resource_dir;

static UI_DIR: &str = "../";
static UI_DIST_DIR: &str = "../dist";
static STATIC_DIR: &str = "target/generated";
static UI_DIR: &str = "../client";
static UI_DIST_DIR: &str = "../client/dist";
static STATIC_DIR: &str = "./target/generated";

#[cfg(windows)]
static NPM_CMD: &str = "npm.cmd";
Expand Down

0 comments on commit 7e98c07

Please sign in to comment.