mirror of
https://github.com/game-ci/unity-actions.git
synced 2026-01-29 04:39:07 +08:00
69 lines
3.1 KiB
Markdown
69 lines
3.1 KiB
Markdown
# Unity Actions
|
|
|
|
[](https://github.com/WebberTakken/unity-actions/workflows/Actions%20😎/badge.svg)
|
|
|
|
Github actions for testing and building Unity projects.
|
|
|
|
Contributions are welcomed!
|
|
|
|
## Workflow steps
|
|
|
|
Here's a complete mental model of how to build, test and deploy your Unity app.
|
|
|
|
1. Checkout your repository
|
|
2. Configure `request activation file` job.
|
|
3. Activate your license and
|
|
[add](https://github.com/webbertakken/unity-request-manual-activation-file)
|
|
the environment variable `UNITY_LICENSE`.
|
|
- Optionally verify your license using `Activate licence` job.
|
|
4. Configure your test jobs.
|
|
5. Create builds for your desired targets.
|
|
6. Deploy your application.
|
|
|
|
Detailed instructions can be found in each action below.
|
|
|
|
## Jobs
|
|
|
|
#### Checkout
|
|
|
|
| Description | Done | Status |
|
|
|-------------------------|------|--------|
|
|
| [Checkout project](https://github.com/actions/checkout) | ✔ | Native support |
|
|
|
|
#### Configure
|
|
|
|
| Description | Done | Status |
|
|
|-------------------------|------|--------|
|
|
| [Request activation file](https://github.com/marketplace/actions/unity-request-activation-file) | ✔ | [](https://github.com/webbertakken/unity-request-manual-activation-file) |
|
|
| [Activate license](https://github.com/marketplace/actions/unity-activate) | ✔ | [](https://github.com/webbertakken/unity-activate) |
|
|
|
|
#### Test
|
|
|
|
| Description | Done | Status |
|
|
|-------------------------|------|--------|
|
|
| [Test edit mode](https://github.com/marketplace/actions/unity-test-runner) | ✔ | [](https://github.com/webbertakken/unity-test-runner#edit-mode) |
|
|
| [Test play mode](https://github.com/marketplace/actions/unity-test-runner) | ✔ | [](https://github.com/webbertakken/unity-test-runner#play-mode) |
|
|
| [Test all in one](https://github.com/marketplace/actions/unity-test-runner) | ✔ | [](https://github.com/webbertakken/unity-test-runner#all-in-one-mode) |
|
|
|
|
#### Build
|
|
|
|
| Description | Done | Status |
|
|
|-------------------------|------|--------|
|
|
| Build for WebGL | ❌ | In progress |
|
|
| Build for Windows | ❌ | In progress |
|
|
| Build for Linux | ❌ | In progress |
|
|
| Build for MacOS | ❌ | In progress |
|
|
| Build for Android | ❌ | In progress |
|
|
| Build for iOS | ❌ | In progress |
|
|
|
|
#### Reference implementation
|
|
|
|
A full example implementation can be found in `main.yml` of this repo.
|
|
|
|
## Credits
|
|
|
|
Huge thanks to
|
|
[gableroux](https://gableroux.com/)
|
|
for his docker [image](https://hub.docker.com/r/gableroux/unity3d/)
|
|
and gitlab-ci [example](https://gitlab.com/gableroux/unity3d).
|