chore: linux in ci#248
Conversation
WalkthroughThe pull request modifies the GitHub Actions workflow configuration file for the desktop app release process. Specifically, it activates Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/release_desktop_app.yml(1 hunks)
🔇 Additional comments (1)
.github/workflows/release_desktop_app.yml (1)
28-32: Fix the runner OS condition mismatch.The conditional checks reference
windows-2019, but the availablebuild_typeoption iswindows-latest. This causes:
- Line 28: The condition
!= 'windows-2019'will always be true for bothubuntu-latestandwindows-latestselections, incorrectly settingautocrlftoinputon Windows (which typically requirestrue).- Line 31: The condition
== 'windows-2019'will never match any available option.Update the conditions to check for the correct runner type:
- name: EOL autocrlf input - if: ${{ github.event.inputs.build_type != 'windows-2019' }} + if: ${{ github.event.inputs.build_type != 'windows-latest' }} run: git config --global core.autocrlf input - name: EOL autocrlf true - if: ${{ github.event.inputs.build_type == 'windows-2019' }} + if: ${{ github.event.inputs.build_type == 'windows-latest' }} run: git config --global core.autocrlf true
| type: choice | ||
| options: | ||
| # - ubuntu-latest | ||
| - ubuntu-latest |
There was a problem hiding this comment.
Enable Ubuntu as a build option. ✓
The change to uncomment ubuntu-latest is sound and enables Linux builds. However, there is a pre-existing critical issue in the workflow that should be addressed before merging.
🤖 Prompt for AI Agents
In .github/workflows/release_desktop_app.yml around line 11, you uncommented "-
ubuntu-latest" to enable Linux builds but the workflow likely still hardcodes
runs-on or lacks a proper matrix entry; update the job to use a strategy.matrix
(e.g., strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest]) and
set runs-on: ${{ matrix.os }}, remove any duplicate runner entries, ensure any
OS-specific steps/paths are guarded by if: matrix.os == '...' checks, and run
the workflow linter/validate to confirm the YAML is valid before merging.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.