Skip to content

Update CI workflow #1975

Open
Open
@bitsandfoxes

Description

@bitsandfoxes

The Problem

I've made quite a few changes and updates to CI and it's been a bit of a pain a couple of times. Different jobs but for the same platforms keep interfering, i.e.

  1. The job that compiles the Android app fails. This causes the iOS device tests to not run because they depend on the job to finish successfully.
  2. Package Validation. You're making changes to the package contents and CI won't run because Package Validation is be base for all jobs.

The Proposal

Instead, and to get rid of all the if: ${{ matrix.platform == 'Android' }} and similar checks, we could split the jobs into something like the following chart

Current setup

Image

Proposed setup

Image

The Plan

Misc Info

Build Licenses

Build-License overlap would still exist but is already prevalent due to our use of matrix to target multiple platforms with one job.

Additional context

The average times for the individual jobs are:

  • Build Unity SDK: 5 min
  • Create Smoke Test: 2 min
  • Building
    • Android: 10 min
    • iOS: 6 min
    • WebGL: 13 min
    • Linux: 11 min
    • Windows: 30 min
  • Compiling SmokeTest
    • Android: 5 min
    • iOS: 4 min
  • Running Device Test (mobile)
    • Android: 5 min
    • iOS: 5 min

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions