Skip to content
Merged
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
type: string

env:
LOWEST_SUPPORTED_UNITY_VERSION: 2020
LOWEST_SUPPORTED_UNITY_VERSION: 2020.3
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1
GITHUB_ACTOR: ${{ github.actor }}
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
workflow_dispatch: # e.g. to manually trigger on foreign PRs

env:
LOWEST_SUPPORTED_UNITY_VERSION: 2020
LOWEST_SUPPORTED_UNITY_VERSION: 2020.3
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1

Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
fail-fast: false
matrix:
# Building the SDK with Unity 2022 and newer requires ns2.1 - skipping for now
unity-version: ["2020", "2021"]
unity-version: ["2020.3", "2021.3"]
uses: ./.github/workflows/build.yml
with:
unity-version: ${{ matrix.unity-version }}
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
strategy:
fail-fast: false
matrix:
unity-version: ["2020", "2022", "6000", "6100"]
unity-version: ["2020.3", "2022.3", "6000.0", "6000.1"]
uses: ./.github/workflows/smoke-test-create.yml
with:
unity-version: ${{ matrix.unity-version }}
Expand All @@ -101,7 +101,7 @@ jobs:
strategy:
fail-fast: false
matrix:
unity-version: ["2020", "2022", "6000", "6100"]
unity-version: ["2020.3", "2022.3", "6000.0", "6000.1"]
platform: ["WebGL", "Linux"]
include:
- platform: WebGL
Expand Down Expand Up @@ -205,7 +205,7 @@ jobs:
strategy:
fail-fast: false
matrix:
unity-version: ["2020", "2022", "6000", "6100"]
unity-version: ["2020.3", "2022.3", "6000.0", "6000.1"]
uses: ./.github/workflows/smoke-test-build-android.yml
with:
unity-version: ${{ matrix.unity-version }}
Expand All @@ -224,7 +224,7 @@ jobs:
matrix:
api-level: [30, 31, 34] # last updated January 2025
init-type: ["runtime", "buildtime"]
unity-version: ["2020", "2022", "6000", "6100"]
unity-version: ["2020.3", "2022.3", "6000.0", "6000.1"]

smoke-test-build-ios:
name: Build iOS ${{ matrix.unity-version }} Smoke Test
Expand All @@ -234,7 +234,7 @@ jobs:
strategy:
fail-fast: false
matrix:
unity-version: ["2020", "2022", "6000", "6100"]
unity-version: ["2020.3", "2022.3", "6000.0", "6000.1"]
uses: ./.github/workflows/smoke-test-build-ios.yml
with:
unity-version: ${{ matrix.unity-version }}
Expand All @@ -247,7 +247,7 @@ jobs:
strategy:
fail-fast: false
matrix:
unity-version: ["2020", "2022", "6000", "6100"]
unity-version: ["2020.3", "2022.3", "6000.0", "6000.1"]
init-type: ["runtime", "buildtime"]
uses: ./.github/workflows/smoke-test-compile-ios.yml
with:
Expand All @@ -266,7 +266,7 @@ jobs:
strategy:
fail-fast: false
matrix:
unity-version: ["2020", "2022", "6000", "6100"]
unity-version: ["2020.3", "2022.3", "6000.0", "6000.1"]
# Check https://support.apple.com/en-us/HT201222 for the latest minor version for a given major one.
# https://developer.apple.com/support/app-store/ shows that of all iOS devices
# - `iOS 17`: 86 %
Expand All @@ -287,7 +287,7 @@ jobs:
strategy:
fail-fast: false
matrix:
unity-version: ["2020", "2022", "6000", "6100"]
unity-version: ["2020.3", "2022.3", "6000.0", "6000.1"]
platform: ["WebGL", "Linux"]
steps:
- name: Checkout
Expand Down Expand Up @@ -325,7 +325,7 @@ jobs:
strategy:
fail-fast: false
matrix:
unity-version: ["2020", "2022", "6000", "6100"]
unity-version: ["2020.3", "2022.3", "6000.0", "6000.1"]
# os: ["windows", "macos"]
os: ["windows"]
include:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/update-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
strategy:
fail-fast: false
matrix:
unity-prefix: ['2020', '2021', '2022', '6000']
unity-prefix: ['2020.3', '2021.3', '2022.3', '6000.0', '6000.1']
steps:
- name: Find the latest Unity version
id: version-select
Expand All @@ -61,15 +61,15 @@ jobs:
ssh-key: ${{ secrets.CI_DEPLOY_KEY }}

- name: Update sample ProjectVersion.txt
if: ${{ matrix.unity-prefix == '2020' }}
if: ${{ matrix.unity-prefix == '2020.3' }}
run: |
"m_EditorVersion: ${{ steps.version-select.outputs.version }}`nm_EditorVersionWithRevision: ${{ steps.version-select.outputs.version }} (${{ steps.version-select.outputs.changeset }})" `
| Out-File "samples\unity-of-bugs\ProjectSettings\ProjectVersion.txt"

- name: Update ci-env.ps1
run: |
$file = "scripts/ci-env.ps1"
$regexVersion = '${{ matrix.unity-prefix }}' + "[0-9.a-z]+"
$regexVersion = '${{ matrix.unity-prefix }}' + "\.[0-9]+[a-z][0-9]+"
echo "Regex: $regexVersion"
(Get-Content $file) -replace $regexVersion, '${{ steps.version-select.outputs.version }}' | Out-File $file

Expand Down
15 changes: 6 additions & 9 deletions scripts/ci-env.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,19 @@ param (
)

switch ($name) {
"unity2020" {
"unity2020.3" {
return "2020.3.48f1"
}
"unity2021" {
"unity2021.3" {
return "2021.3.45f1"
}
"unity2022" {
"unity2022.3" {
return "2022.3.62f1"
}
"unity2023" {
return "2023.2.20f1"
"unity6000.0" {
return "6000.0.54f1"
}
"unity6000" {
return "6000.0.49f1"
}
"unity6100" {
"unity6000.1" {
return "6000.1.12f1"
}
Default {
Expand Down
Loading