Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Unity開発でCI/CDを使おうと思った時
Search
あるど
February 20, 2019
Programming
1.2k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Unity開発でCI/CDを使おうと思った時
https://noengineering-nolife.connpass.com/event/119866/
あるど
February 20, 2019
Transcript
28 slides
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つおい • 精神を安定させて開発をしていこう
おわり
More Decks by あるど
See All by あるど
Unity WebGL向けにjsでネイティブプラグイン書いた話
mizotake
0
530
OSSをゆるっとやるだけでも 楽しいなって話
mizotake
2
4.5k
手軽なトラッキング技術で遊んでみた
mizotake
0
4k
GitHub_Actionsをセルフホストランナーで導入する
mizotake
0
4.1k
Kotlin/Native With Unity
mizotake
1
320
Other Decks in Programming
See All in Programming
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
660
自作Discord音声botをLambda MicroVMsに移行した話 / Migrating My Discord Voice Bot to Lambda MicroVMs
akihisaikeda
1
330
Distance field of Julia set
kinakomoti321
0
320
あなたはMCPの機能を、まだ知らない。
4geru
1
140
なぜ私たちは「現時点では」KMPの導入を見送ったのか
chigichan24
0
220
SODA - FACT BOOK(EN)
sodainc
1
240
Getting Started with Vibe Coding
miccheng
0
220
GraphQL の onError と Nullability のこれから
quramy
0
220
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
4
3.9k
SODA - FACT BOOK(JP)
sodainc
1
40k
Web3Dライブラリを作ってVue Custom Rendererの仕組みを理解しよう / lets learn vue custom renderer by making 3d library
drumath2237
1
140
例外からRich Errorsまで Kotlinエラーハンドリングの進化を読み解く
shiita0903
0
160
Featured
See All Featured
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.7k
GitHub's CSS Performance
jonrohan
1033
470k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
70
69k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
520
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k