/unity-actions

Github actions for testing and building Unity projects

Primary LanguageC#MIT LicenseMIT

Unity Actions

Actions status


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 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. Optionally, return your license (applicable to pro licenses only)
  7. Deploy your application.

Detailed instructions can be found in each action below.

Jobs

Checkout

Description Done Status
Checkout project Native support

Configure

Description Done Status
Request activation file Actions status
Activate license Actions status
Return license Actions status

Test

Description Done Status
Test edit mode Actions status
Test play mode Actions status
Test all in one Actions status

Build

Description Done Status
Build for WebGL Actions status
Build for Windows Actions status
Build for Linux Actions status
Build for MacOS Actions status
Build for Android In progress
Build for iOS Actions status
Build for Windows store In progress
Build for PS4 In progress
Build for XboxOne In progress
Build for tvOS In progress
Build for Switch In progress

Reference implementation

A full example implementation can be found in main.yml of this repo.

Credits

Huge thanks to GabLeRoux for his docker image and gitlab-ci example.