Skip to content

Update Tauri release workflow for additional branch and paths#716

Merged
tachyons merged 3 commits intomainfrom
tauri-test-2
Jan 5, 2026
Merged

Update Tauri release workflow for additional branch and paths#716
tachyons merged 3 commits intomainfrom
tauri-test-2

Conversation

@tachyons
Copy link
Member

@tachyons tachyons commented Jan 5, 2026

Fixes #

Describe the changes you have made in this PR -

Screenshots of the changes (If any) -

Note: Please check Allow edits from maintainers. if you would like us to assist in the PR.

Summary by CodeRabbit

  • Chores
    • Minor workflow formatting adjustments for job matrix entries.
    • Frontend build now invokes cross-env to set DESKTOP_MODE for cross-platform consistency.
    • Removed duplicate environment declaration and cleaned related inline comments.
    • Artifact collection widened to include all platform bundles (macOS app bundles, Windows installers) using a recursive bundle path.

✏️ Tip: You can customize this high-level summary in your review settings.

@netlify
Copy link

netlify bot commented Jan 5, 2026

Deploy Preview for circuitverse ready!

Name Link
🔨 Latest commit e247183
🔍 Latest deploy log https://app.netlify.com/projects/circuitverse/deploys/695b44ca78d8bf0008377f13
😎 Deploy Preview https://deploy-preview-716--circuitverse.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 45 (🟢 up 7 from production)
Accessibility: 73 (no change from production)
Best Practices: 92 (no change from production)
SEO: 82 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 5, 2026

Caution

Review failed

The pull request is closed.

Walkthrough

Minor formatting change in the workflow matrix include. The frontend build step was changed to run npx cross-env DESKTOP_MODE=true npm run build and the inline DESKTOP_MODE env was removed. Artifact upload globs were broadened to src-tauri/target/**/release/bundle/** (now matching recursive bundles) and explicitly added support for macOS .app and NSIS .exe outputs; existing dmg, msi, deb, and AppImage patterns were retained. An outdated comment preceding the upload step was removed.

Possibly related PRs

  • CircuitVerse/cv-frontend-vue PR 503: Modifies the same .github/workflows/tauri-release.yml workflow and updates frontend build and artifact upload steps.

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main changes: adding support for an additional branch (tauri-test-2) and updating artifact paths in the Tauri release workflow.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

📜 Recent review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d0c54c0 and e247183.

📒 Files selected for processing (1)
  • .github/workflows/tauri-release.yml

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Fix all issues with AI Agents 🤖
In @.github/workflows/tauri-release.yml:
- Line 5: The workflow currently lists branches: [ "main", "tauri-test-2" ]
which will trigger draft release creation on every push to tauri-test-2; either
remove "tauri-test-2" from the branches array in
.github/workflows/tauri-release.yml or move the test branch into a separate
workflow file (e.g., tauri-release-test.yml) or add a paths or if condition to
the existing workflow to only run on specific files or tags so test pushes don’t
create draft releases.
- Around line 56-60: The workflow step uses "npx cross-env DESKTOP_MODE=true npm
run build" but cross-env is not declared in package.json; either add cross-env
to package.json devDependencies (install with npm/yarn as a dev dependency so CI
doesn't fetch it on every run) or explicitly document in repository/README that
the workflow relies on npx downloading cross-env at runtime and requires
internet access; update the workflow or documentation accordingly and ensure the
symbol "npx cross-env DESKTOP_MODE=true npm run build" and "package.json
devDependencies" are addressed.
- Around line 80-85: The workflow currently lists Windows-only artifact globs
"src-tauri/target/**/release/bundle/msi/*.msi" and
"src-tauri/target/**/release/bundle/nsis/*.exe" but the job matrix has no
Windows runner; either remove those two Windows-specific patterns from the
artifacts list or add a Windows runner to the matrix (e.g., include
"windows-latest" under the matrix key used by the release job or add a new
matrix entry) so the artifacts can be produced and uploaded.
📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9f8eaf1 and 8cb8951.

📒 Files selected for processing (1)
  • .github/workflows/tauri-release.yml
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: senutpal
Repo: CircuitVerse/cv-frontend-vue PR: 706
File: .github/workflows/tauri-release.yml:51-51
Timestamp: 2025-12-30T10:11:52.399Z
Learning: In cv-frontend-vue repository, the tauri-action's `projectPath` should be set to `.` (root) because the `beforeBuildCommand` needs to run from the root directory where `package.json` and `dist/` are located. The Tauri CLI automatically locates `src-tauri/tauri.conf.json` from the project root.
📚 Learning: 2025-12-30T10:11:52.399Z
Learnt from: senutpal
Repo: CircuitVerse/cv-frontend-vue PR: 706
File: .github/workflows/tauri-release.yml:51-51
Timestamp: 2025-12-30T10:11:52.399Z
Learning: In cv-frontend-vue repository, the tauri-action's `projectPath` should be set to `.` (root) because the `beforeBuildCommand` needs to run from the root directory where `package.json` and `dist/` are located. The Tauri CLI automatically locates `src-tauri/tauri.conf.json` from the project root.

Applied to files:

  • .github/workflows/tauri-release.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build-tauri (ubuntu-22.04)

Comment on lines +56 to 60
# Using npx ensures these tools work on Windows, Mac, and Linux
run: |
npm run build
npx cross-env DESKTOP_MODE=true npm run build
node -e "const fs = require('fs'); const src='./dist/index-cv.html'; const dest='./dist/index.html'; if (fs.existsSync(src)) { fs.copyFileSync(src, dest); console.log('Synced index files'); } else { console.log('index-cv.html not found, skipping sync'); }"
working-directory: ./src
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check if cross-env is in ./src/package.json devDependencies

if [ -f "src/package.json" ]; then
  echo "=== Content of src/package.json (devDependencies only) ==="
  cat src/package.json | jq '.devDependencies | to_entries[] | select(.key | contains("cross-env")) | "\(.key): \(.value)"'
  echo ""
  echo "=== All devDependencies ==="
  cat src/package.json | jq '.devDependencies | keys' 2>/dev/null || echo "No devDependencies found"
else
  echo "src/package.json not found"
  echo "Checking for package.json in root directory:"
  cat package.json | jq '.devDependencies | to_entries[] | select(.key | contains("cross-env")) | "\(.key): \(.value)"' 2>/dev/null || echo "No cross-env in root package.json"
fi

Repository: CircuitVerse/cv-frontend-vue

Length of output: 143


🏁 Script executed:

#!/bin/bash
# Check repository structure and package.json

echo "=== Checking for package.json files ==="
find . -name "package.json" -type f 2>/dev/null

echo ""
echo "=== Root directory structure ==="
ls -la | head -20

echo ""
echo "=== Contents of root package.json ==="
cat package.json | jq '.' 2>/dev/null | head -50

echo ""
echo "=== Checking for src directory ==="
ls -la src/ 2>/dev/null || echo "src directory not found"

Repository: CircuitVerse/cv-frontend-vue

Length of output: 3906


🏁 Script executed:

#!/bin/bash
# Get complete devDependencies list to check for cross-env

cat package.json | jq '.devDependencies | keys' | grep -i cross-env || echo "Checking all devDependencies..."
cat package.json | jq '.devDependencies' | head -100

Repository: CircuitVerse/cv-frontend-vue

Length of output: 801


Add cross-env to devDependencies or document the dependency on npx.

The code uses npx cross-env to ensure cross-platform environment variable support, but cross-env is not currently listed in the project's devDependencies. This means the tool will be downloaded on-the-fly each time the workflow runs.

Recommend either:

  1. Add cross-env to devDependencies in package.json for explicit dependency management, or
  2. Document that this workflow depends on internet access to download cross-env via npx
🤖 Prompt for AI Agents
In @.github/workflows/tauri-release.yml around lines 56-60, The workflow step
uses "npx cross-env DESKTOP_MODE=true npm run build" but cross-env is not
declared in package.json; either add cross-env to package.json devDependencies
(install with npm/yarn as a dev dependency so CI doesn't fetch it on every run)
or explicitly document in repository/README that the workflow relies on npx
downloading cross-env at runtime and requires internet access; update the
workflow or documentation accordingly and ensure the symbol "npx cross-env
DESKTOP_MODE=true npm run build" and "package.json devDependencies" are
addressed.

Added Windows platform support for Tauri release workflow.
Removed 'tauri-test-2' branch from push triggers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant