Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Unity開発でCI/CDを使おうと思った時
Search
あるど
February 20, 2019
Programming
0
1.2k
Unity開発でCI/CDを使おうと思った時
https://noengineering-nolife.connpass.com/event/119866/
あるど
February 20, 2019
Tweet
Share
More Decks by あるど
See All by あるど
Unity WebGL向けにjsでネイティブプラグイン書いた話
mizotake
0
480
OSSをゆるっとやるだけでも 楽しいなって話
mizotake
2
3.7k
手軽なトラッキング技術で遊んでみた
mizotake
0
3.3k
GitHub_Actionsをセルフホストランナーで導入する
mizotake
0
3.5k
Kotlin/Native With Unity
mizotake
1
260
Other Decks in Programming
See All in Programming
React Nativeならぬ"Vue Native"が実現するかも?_新世代マルチプラットフォーム開発フレームワークのLynxとLynxのVue.js対応を追ってみよう_Vue Lynx
yut0naga1_fa
2
2k
Tangible Code
chobishiba
3
490
Inside of Swift Export
giginet
PRO
1
520
coconala_slide_pop.pdf
yukihito13
0
260
Migration to Signals, Resource API, and NgRx Signal Store
manfredsteyer
PRO
0
160
Node-REDのノードの開発・活用事例とコミュニティとの関わり(Node-RED Con Nagoya 2025)
404background
0
120
Vue 3.6 時代のリアクティビティ最前線 〜Vapor/alien-signals の実践とパフォーマンス最適化〜
hiranuma
2
410
CSC305 Lecture 14
javiergs
PRO
0
250
ノーコードからの脱出 -地獄のデスロード- / Escape from Base44
keisuke69
0
640
Dive into Triton Internals
appleparan
0
460
SUZURIの規約違反チェックにおけるクリエイタフィードバックの試⾏錯誤/Trial and Error in Creator Feedback for SUZURI's Terms of Service Violation Checks
ae14watanabe
1
130
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
590
Featured
See All Featured
Automating Front-end Workflow
addyosmani
1371
200k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Navigating Team Friction
lara
190
15k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.6k
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
10
650
Building an army of robots
kneath
306
46k
The Power of CSS Pseudo Elements
geoffreycrofte
80
6k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Gamification - CAS2011
davidbonilla
81
5.5k
Speed Design
sergeychernyshev
32
1.2k
Transcript
Unity開発でCI/CDを 使おうと思った時 失敗LT祭! 〜俺の話を聞いてくれ〜 2019/02/20
自己紹介 • あるど(24) @OrangeGKeeper • 色々なことをやってる会社に勤務 ◦ Smartphone team Engineer
◦ 最終出社日2/28 • 好きなVtuberはMonterZ MATE • 好きなVライバーは空兎ヨル
趣味でゲームやコンテンツを開発
失敗した話
その前に
会社に入ってから気付くこと アプリの自動ビルドや自動配信便利!
趣味はUnityばかりで開発するんだけど… 出来れば無料CI/CDでやりたい!
UnityのCI情報はオンプレCI/CDの Jenkinsばかり…でも、やるか!
2006年代のiMacで運用 Jenkins機 開発機
Jenkinsを自宅で運用したら 電気代が約3,000円増えた件
このままじゃだめだ…! Cloud CI/CDに変えよう…
Unity Cloud Build https://unity3d.com/jp/unity/features/cloud-build
Unity Cloud Build • Unity公式CI/CDツール • 2018/01より有償化 ◦ 最低でもUnity Teamsへの加入が必要(月々$9)
• Build Platform ◦ スマホ(iOS/Android) ◦ WebGL ◦ デスクトップ(Windows/MacOS/Linux)
yml定義とかで使えるものないかな
GitLab CI/CD https://about.gitlab.com/product/continuous-integration/
GitLab CI/CD • gableroux/unity3d-gitlab-ci-example • UnityでのCI/CDをGitLabでやっている方がいる • さらにはTravisサポートまで! • featureでCircleCIを含めている
• DockerHubにてUnityを含んだLinuxのDockerfileを 公開してくれている gableroux/unity3d • 無料プランは1ヶ月2,000分のPipelineを回す時間が 与えられる
CircleCI https://circleci.com/
CircleCI • CircleCIでUnityのTest&Buildを雰囲気理解で走らせ た 記事書きました。 • 無料プランは1ヶ月1,000分の時間制限がある • unity3d-gitlab-ci-example を参考にCircleCIで
fastlaneを使ったAndroidビルドできました PullRequestも送ってみた • iOSは検証環境を持ってないので…いつか…
CircleCI CI/CDはやはり精神安定剤
おまけ失敗: 初めてforkした https://github.com/MizoTake/unity3d-ci-example
おまけ失敗: 初めてforkした 手元のリポジトリでPR作ろうとしたら間違えた デフォルトで本家にPR行くようになっていた
おまけ失敗: 初めてforkした
CircleCIのビルドからわかったこと • gableroux/unity3d のDockerデータがあれば大体ど の環境でも動かせる ◦ TagでMoble用(iOS/Android)もある • UnityのLicenseさえ通せばなんとでもなる •
ここまで全てCommand Line解決できる
ということは別のCI/CD環境で も応用は全然できそう
Azure Pipelines https://azure.microsoft.com/ja-jp/services/devops/pipelines/
Azure Pipelines • オープンソースなら並列ジョブを10まで回せる ◦ 時間制限なし ◦ Linux, macOS, Windowsの環境を選べる
• GUIでワークフロー構築ができる ◦ もちろんymlも可 ➔ 趣味なら全然良さそう
まとめ • Cloud CI/CDサービスがやはりメンテや電気代の面 で良い(迫真) • forkした後にPR作るときはマージ先を確認(永遠に残 る) • UnityだからCI/CDをやり辛いなどはない
• Azure Pipelinesつおい • 精神を安定させて開発をしていこう
おわり