fix: update frontend build process and add logging for embedded assets
Some checks failed
Test / get-ci-image (pull_request) Successful in 14s
Test / test-frontend (pull_request) Successful in 47s
Verify / get-ci-image (pull_request) Successful in 6s
Test / lint-frontend (pull_request) Successful in 1m14s
Verify / verify-generated-db-entities (pull_request) Failing after 15m14s
Test / frontend-build (pull_request) Failing after 19m51s
Test / test-crates (pull_request) Has been skipped
Test / lint-crates (pull_request) Has been skipped

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
GW_MC
2026-04-25 03:21:36 +00:00
parent 836617fa54
commit 4b80619c97
2 changed files with 10 additions and 14 deletions

View File

@@ -42,13 +42,11 @@ jobs:
- name: Setup Rust, checkout and restore caches - name: Setup Rust, checkout and restore caches
uses: ./.github/actions/setup-rust uses: ./.github/actions/setup-rust
- name: Restore frontend build cache - name: Download frontend build artifact
uses: actions/cache@v4 uses: actions/download-artifact@v3
with: with:
name: frontend-build
path: apps/nxmesh-frontend/dist path: apps/nxmesh-frontend/dist
key: frontend-build-${{ runner.os }}-run-${{ github.run_id }}
restore-keys: |
frontend-build-${{ runner.os }}-
- name: Copy frontend build to expected location - name: Copy frontend build to expected location
run: | run: |
@@ -80,13 +78,11 @@ jobs:
with: with:
components: clippy, rustfmt components: clippy, rustfmt
- name: Restore frontend build cache - name: Download frontend build artifact
uses: actions/cache@v4 uses: actions/download-artifact@v3
with: with:
name: frontend-build
path: apps/nxmesh-frontend/dist path: apps/nxmesh-frontend/dist
key: frontend-build-${{ runner.os }}-run-${{ github.run_id }}
restore-keys: |
frontend-build-${{ runner.os }}-
- name: Copy frontend build to expected location - name: Copy frontend build to expected location
run: | run: |
@@ -160,9 +156,8 @@ jobs:
cd apps/nxmesh-frontend cd apps/nxmesh-frontend
bun run build bun run build
- name: Cache frontend build - name: Upload frontend build artifact
uses: actions/cache@v4 uses: actions/upload-artifact@v3
with: with:
name: frontend-build
path: apps/nxmesh-frontend/dist path: apps/nxmesh-frontend/dist
key: frontend-build-${{ runner.os }}-run-${{ github.run_id }}
# IGNORE restore-keys

View File

@@ -77,6 +77,7 @@ mod tests {
async fn test_asset() { async fn test_asset() {
// list all embedded assets for debugging // list all embedded assets for debugging
let assets = FrontendAssets::iter().collect::<Vec<_>>(); let assets = FrontendAssets::iter().collect::<Vec<_>>();
println!("Embedded assets: {:?}", assets);
assert!( assert!(
!assets.is_empty(), !assets.is_empty(),
"Expected to find embedded assets, but found none" "Expected to find embedded assets, but found none"