How to build your Unity game with Game CI and Github

How to build your Unity game with Game CI and Github

LP Games

3 года назад

16,889 Просмотров

Automatically build your projects to Windows, Mac, Android and other platforms as will as test and deploy using Github Actions.


Have any questions or would like me to go into more detail on something. Just post your questions in the comments.


00:00 - [Intro]
00:33 - [Overview]
01:40 - [Unity - The game to be built]
02:47 - [Git - Create your repository]
05:49 - [Github - Getting started with Actions]
06:50 - [Actions - Generate a Unity license]
11:58 - [Github - Store your license in a Secret]
14:00 - [Actions - Run your tests]
17:54 - [Actions - Build your game]
21:22 - [Actions - Deploy to Github Pages]
24:13 - [Bug!! - Fix build error in Android build]
25:40 - [Demo - Github Pages deployment]
27:00 - [Summary]


Links:
- Game.CI Documentation - Getting started (https://game.ci/docs/github/getting-started)
- Github "Unity Actions" Project (https://github.com/game-ci/unity-actions)
- The Game - 2D Roguelike (https://learn.unity.com/project/2d-roguelike-tutorial)
- Game.CI Discord - https://discord.com/invite/WyPN5r9
- This repo: https://github.com/yanniboi/RogueCI/
- Notes - https://github.com/yanniboi/RogueCI/wiki


GDFG Community:
Want to join a community of budding game developers. Join our discord or listen to the Game Development Field Guide podcast.
- https://discord.com/invite/2C8eTsU
- https://open.spotify.com/show/7MHCdZLUyHLjmb3zc2XmJR

Тэги:

#CI #Unity #GameDev #IndieDev #Github_Actions
Ссылки и html тэги не поддерживаются


Комментарии:

The Raj Show
The Raj Show - 10.10.2023 06:44

For some reason this is no longer working for me :(

Ответить
Adr1an0
Adr1an0 - 02.08.2023 14:58

Do I need to save GITHUB_TOKEN as a secret?

Ответить
Vitor Soares
Vitor Soares - 04.07.2023 18:49

Thank you, it worked great.

Ответить
Pat CA
Pat CA - 27.05.2023 21:53

How to test for a newer version of Unity? It seems that a 2019 license is not working well with 2021?

Ответить
John Vanderbeck
John Vanderbeck - 17.05.2023 14:26

I you have a pro license for Unity do you need to buy a second license just to run CI?

Ответить
Arik Olsh
Arik Olsh - 08.05.2023 19:42

Would love to see how you build & deploy to iOS testflight.

Ответить
Mehmet Ali Seçgin
Mehmet Ali Seçgin - 04.02.2023 19:23

Thank you so much for this video! I wanted to use the same techniques we use in our company which are entirely irrelevant to Unity. And Now I can do that. I appreciate it. Good work!

Ответить
Jayadev Haddadi
Jayadev Haddadi - 30.11.2022 08:58

Super useful, super cool!

I just didnt catch from where we can check the other builds, like windows build, or where we can get the error log... ?

Ответить
WorkingName
WorkingName - 14.11.2022 13:10

Can the same stuff be done using "windows-latest" instead of "ubuntu-latest" as a host machine for github-actions?
My app seems to have a ton of problems compiling under Ubuntu and on my Windows 10 environment everything is just working fine

Ответить
Working Thread
Working Thread - 09.11.2022 20:18

Wouldn't cloud build times be faster if the Library folder was pushed to github as well? (I'm aware that the folder might be gigantic in size)

Ответить
Max Dolotboy
Max Dolotboy - 19.10.2022 02:41

Why is there no more activation and template.yaml file in your Github repo when I follow the link ?

Ответить
Anderson Marques
Anderson Marques - 27.08.2022 23:33

Thanks for the video, I was facing some issues while compiling WebGL, but the problem was an deprecated unity graphics API, after removing it the compilation passes successfully.

Ответить
Emirhan Dur
Emirhan Dur - 04.08.2022 12:10

i am taking two warning.

1) No files were found with the provided path: build/WebGL. No artifacts will be uploaded.
2) Library folder does not exist. Consider setting up caching to speed up your workflow, if this is not your first build.

And i cant get my webgl build in artifacts, how i can solve this?

Ответить
Rafael Ahrons
Rafael Ahrons - 14.07.2022 05:30

Great tutorial it helped me a lot

Ответить
John Weland
John Weland - 10.05.2022 16:31

Thanks you for this, its helped me get started. I am having to work through some issues in the testRunners where they failed with "GooglePlayServices not being available in this context". The same error you see if you don't tell Unity it is Android. But I don't see where in the testRunner (the job that fails) where to set that context.

Ответить
BlueGooGames - Space Chef
BlueGooGames - Space Chef - 29.03.2022 12:58

Great tutorial, thank you so much! I got it all running now, next step is to publish to steam as well :)

Ответить
Germán Diego Guisasola Plejo
Germán Diego Guisasola Plejo - 14.03.2022 10:07

Best tutorial I've found. Thanks!

Ответить
vkarasik
vkarasik - 01.02.2022 19:47

Many thanks, it's fantastic - short, focused, clear!

Ответить
Th3RealJ0K3R
Th3RealJ0K3R - 24.11.2021 19:36

You are seriously, a goddamn hero. Thank you so much!

Ответить