Skip to content

CI の Rust の検査を、apps/desktop か ci.yml が変わった PR だけで動かす - #3

Merged
tango238 merged 1 commit into
mainfrom
ci-rust-only-when-desktop-changes
Nov 6, 2026
Merged

tango238 merged 1 commit into
mainfrom
ci-rust-only-when-desktop-changes

Conversation

@tango238

@tango238 tango238 commented Nov 6, 2026

Copy link
Copy Markdown
Owner

何を変えたか

Tauri の Linux 向けライブラリの取得 (apt-get install) に時間がかかり、Rust に触れない PR でも毎回それを待たされていました。Rust の検査 (cargo check) を、Rust 側に関係する変更があるときだけ動かします。

  • 変更の検出のジョブ changes を足す。PR の差分 (base.sha と PR のマージ結果) を見て、apps/desktop/** (src-tauri と Cargo.lock を含む) か .github/workflows/ci.yml が変わったときだけ rust=true を出す
  • Rust (cargo check) は needs: changes と if: needs.changes.outputs.rust == 'true' で、rust=true のときだけ動かす。ジョブ名は変えていないので、必須のチェックにしていても、飛ばしたときは成功として扱われる
  • main への push では常に動かす。飛ばした PR のあとでも、Rust 側の壊れに main で気づける
  • docs/design.md の CI の説明を合わせる

確認

  • 検出のシェルを、実際の git の差分で試した
  • YAML は読み込めることを確認した
  • この PR は ci.yml を変えているので、Rust のジョブも動く。新しい構成でも Rust のジョブが通ることの確認になる (Actions の動きそのものは、この PR の CI で確かめられる)

知っておいてほしいこと

  • Rust の検査は、ライブラリや stable のツールチェーンの更新で壊れることもある。飛ばした PR のあとは、main の push で動く
  • Rust のジョブを動かすときの apt-get install 自体は、速くなっていない (今回は、動かす回数を減らした)

Generated by Claude Code

Tauri の Linux 向けライブラリの取得 (apt-get install) に時間がかかり、Rust に触れない PR でも毎回待たされていた。
変更の検出のジョブ (changes) が PR の差分を見て、apps/desktop/** か ci.yml が変わったときだけ Rust のジョブを動かす。
main への push では常に動かし、飛ばした PR のあとでも Rust 側の壊れに気づけるようにする。

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EdDb33LK7o1arFRw9rP37g
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T14:40:05.642698Z 5dd5cf6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying untie with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5dd5cf6
Status: ✅  Deploy successful!
Preview URL: https://f45162ae.untie-3lp.pages.dev
Branch Preview URL: https://ci-rust-only-when-desktop-ch.untie-3lp.pages.dev

View logs

@tango238
tango238 merged commit 64025b8 into main Nov 6, 2026
4 checks passed
@tango238
tango238 deleted the ci-rust-only-when-desktop-changes branch November 6, 2026 14:42
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.

2 participants