Skip to content

Update project creation in CI #2225

Open
@bitsandfoxes

Description

@bitsandfoxes

Description

Currently, the SDK is using the create-project.ps1 script to create a new, empty project.

This is part of the main CI:

smoke-test-create:
name: Create ${{ matrix.unity-version }} Smoke Test Project
if: ${{ !startsWith(github.ref, 'refs/heads/release/') }}
secrets: inherit
strategy:
fail-fast: false
matrix:
unity-version: ["2019", "2022", "6000"]
uses: ./.github/workflows/smoke-test-create.yml
with:
unity-version: ${{ matrix.unity-version }}

calling into
run: ./test/Scripts.Integration.Test/create-project.ps1 -UnityPath "${{ env.UNITY_PATH }}"

This is followed by building the project which contains a few steps for downloading, installing, setting up.

- name: Download UPM package
uses: vaind/download-artifact@e7141b6a94ef28aa3d828b52830cfa1f406a1848 # v4-with-wait-timeout
with:
name: ${{ github.sha }}
wait-timeout: 3600
- name: Extract UPM package
run: ./test/Scripts.Integration.Test/extract-package.ps1
- name: Add Sentry to the project
run: ./test/Scripts.Integration.Test/add-sentry.ps1 -UnityPath "${{ env.UNITY_PATH }}"
- name: Configure Sentry
run: ./test/Scripts.Integration.Test/configure-sentry.ps1 -UnityPath "${{ env.UNITY_PATH }}" -Platform ${{ matrix.build_platform }} -CheckSymbols
- name: Build Project
run: ./test/Scripts.Integration.Test/build-project.ps1 -UnityPath "${{ env.UNITY_PATH }}" -Platform ${{ matrix.build_platform }} -CheckSymbols:$${{ matrix.check_symbols }} -UnityVersion "${{ matrix.unity-version }}"

Starting with Unity 2021 and newer, Unity provides command line arguments to make this happen during project creation.

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