Skip to content

unity-setup@v1.2.0 #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 46 commits into from
Jul 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
25cea89
unity-setup@v1.2.0
StephenHodgson Jul 13, 2025
ad0b09e
remove modules in validate workflow for 4.7.2
StephenHodgson Jul 13, 2025
5ec4816
fix compare
StephenHodgson Jul 13, 2025
86c4ac8
update regex
StephenHodgson Jul 13, 2025
f993199
refactor
StephenHodgson Jul 13, 2025
ba90629
4.x skip changeset
StephenHodgson Jul 13, 2025
28c8acb
tweak installation
StephenHodgson Jul 13, 2025
5ce2852
validate access to editor path before adding
StephenHodgson Jul 13, 2025
4d0a4c0
fix version to string
StephenHodgson Jul 13, 2025
d385331
typos
StephenHodgson Jul 13, 2025
7a6b8a9
debugging
StephenHodgson Jul 13, 2025
9ab0b36
use pkg installer
StephenHodgson Jul 13, 2025
9f4110d
more debug
StephenHodgson Jul 13, 2025
3e4a720
ensure legacy editor install path is valid
StephenHodgson Jul 13, 2025
0254f8b
tweaks
StephenHodgson Jul 14, 2025
234ec36
debug
StephenHodgson Jul 14, 2025
0f81cca
fix editor list
StephenHodgson Jul 14, 2025
bd217df
clean macOS install move
StephenHodgson Jul 14, 2025
a44ed1c
refactor
StephenHodgson Jul 14, 2025
9f46116
tweak path
StephenHodgson Jul 14, 2025
88c28d6
add debug
StephenHodgson Jul 14, 2025
ac0f4f4
more debugging
StephenHodgson Jul 14, 2025
9c380f5
dist
StephenHodgson Jul 14, 2025
57908cc
fix
StephenHodgson Jul 14, 2025
ba014df
fix windows
StephenHodgson Jul 14, 2025
6615806
fix win editor path
StephenHodgson Jul 14, 2025
ec86a48
cleanup
StephenHodgson Jul 14, 2025
83557b7
fix editor array
StephenHodgson Jul 14, 2025
785897a
fix legacy check
StephenHodgson Jul 14, 2025
ff3e33b
debug
StephenHodgson Jul 14, 2025
5f1cf78
debug
StephenHodgson Jul 14, 2025
a36b98a
update regex
StephenHodgson Jul 14, 2025
c51b90d
more debug
StephenHodgson Jul 14, 2025
50beee0
update regex
StephenHodgson Jul 14, 2025
4a17cad
regex
StephenHodgson Jul 14, 2025
d7b289d
normalize
StephenHodgson Jul 14, 2025
cfc8db7
tweaks
StephenHodgson Jul 14, 2025
6931697
more logging
StephenHodgson Jul 14, 2025
fca0b45
move bee backend patch into its own function
StephenHodgson Jul 14, 2025
b191c98
Normalize install path
js6pak Jul 15, 2025
9297868
regex
StephenHodgson Jul 15, 2025
6438c9f
api refactor (#36)
StephenHodgson Jul 30, 2025
c607d16
Dev/build matrix (#37)
StephenHodgson Jul 30, 2025
27071ea
switch some logging back to debug
StephenHodgson Jul 30, 2025
2cc8457
feedback
StephenHodgson Jul 30, 2025
e947793
rename var
StephenHodgson Jul 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/build-options.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"os": [
"ubuntu-latest",
"windows-latest",
"macos-latest"
],
"unity-version": [
"None",
"4.7.2",
"5.6.7f1 (e80cc3114ac1)",
"2020.3",
"2021.3.x",
"2022.x",
"6000.0.x",
"6000"
],
"include": [
{
"os": "ubuntu-latest",
"build-targets": "StandaloneLinux64, Android, iOS",
"modules": "linux-server"
},
{
"os": "windows-latest",
"build-targets": "StandaloneWindows64, Android, WSAPlayer",
"modules": "windows-server"
},
{
"os": "macos-latest",
"build-targets": "StandaloneOSX Android iOS VisionOS",
"modules": "mac-server"
},
{
"os": "ubuntu-latest",
"unity-version": "2019.4.40f1",
"modules": "None"
},
{
"os": "ubuntu-latest",
"unity-version": "2018.4.36f1 (6cd387d23174)",
"modules": "None"
},
{
"os": "ubuntu-latest",
"unity-version": "2017.4.40f1 (6e14067f8a9a)",
"modules": "None"
}
],
"exclude": [
{
"os": "ubuntu-latest",
"unity-version": "5.6.7f1 (e80cc3114ac1)"
},
{
"os": "ubuntu-latest",
"unity-version": "4.7.2"
}
]
}
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: build
permissions:
contents: read
on:
workflow_call:
inputs:
matrix:
required: true
type: string
jobs:
build:
name: ${{ matrix.name }}
strategy:
matrix: ${{ fromJSON(inputs.matrix) }}
fail-fast: false
runs-on: ${{ matrix.os }}
permissions:
contents: read
env:
UNITY_EDITORS: '' # set by the unity-setup action
UNITY_HUB_PATH: '' # set by the unity-setup action
UNITY_EDITOR_PATH: '' # set by the unity-setup action
UNITY_PROJECT_PATH: '' # set by the unity-setup action
BUILD_OUTPUT_PATH: ${{ github.workspace }}/Builds/${{ matrix.build-target }}
steps:
- uses: actions/checkout@v4
- uses: ./ # RageAgainstThePixel/unity-setup
with:
version-file: 'None'
unity-version: ${{ matrix.unity-version }}
build-targets: ${{ matrix.build-targets }}
modules: ${{ matrix.modules }}
- run: |
echo "UNITY_HUB_PATH: '${{ env.UNITY_HUB_PATH }}'"
echo "UNITY_EDITORS: '${{ env.UNITY_EDITORS }}'"
echo "UNITY_EDITOR_PATH: '${{ env.UNITY_EDITOR_PATH }}'"
echo "UNITY_PROJECT_PATH: '${{ env.UNITY_PROJECT_PATH }}'"
76 changes: 22 additions & 54 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,62 +12,30 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
validate:
setup:
runs-on: ubuntu-latest
permissions:
contents: read
env:
UNITY_EDITORS: '' # set by the unity-setup action
UNITY_HUB_PATH: '' # set by the unity-setup action
UNITY_EDITOR_PATH: '' # set by the unity-setup action
UNITY_PROJECT_PATH: '' # set by the unity-setup action
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
unity-version:
- None
- 5.6.7f1 (e80cc3114ac1)
- 2020.3
- 2021.3.x
- 2022.x
- 6000.0.x
- 6000
include:
- os: ubuntu-latest
build-targets: StandaloneLinux64, Android, iOS
modules: linux-server
- os: windows-latest
build-targets: StandaloneWindows64, Android, WSAPlayer
modules: windows-server
- os: macos-latest
build-targets: StandaloneOSX Android iOS VisionOS
modules: mac-server
- os: ubuntu-latest
unity-version: 2019.4.40f1
modules: None
- os: ubuntu-latest
unity-version: 2018.4.36f1 (6cd387d23174)
modules: None
- os: ubuntu-latest
unity-version: 2017.4.40f1 (6e14067f8a9a)
modules: None
exclude:
# Exclude Unity 5.x for linux as it is not supported
- os: ubuntu-latest
unity-version: '5.6.7f1 (e80cc3114ac1)'
steps:
- uses: actions/checkout@v4

- uses: ./ # RageAgainstThePixel/unity-setup
with:
version-file: 'None'
unity-version: ${{ matrix.unity-version }}
build-targets: ${{ matrix.build-targets }}
modules: ${{ matrix.modules }}

- run: |
echo "UNITY_HUB_PATH: '${{ env.UNITY_HUB_PATH }}'"
echo "UNITY_EDITORS: '${{ env.UNITY_EDITORS }}'"
echo "UNITY_EDITOR_PATH: '${{ env.UNITY_EDITOR_PATH }}'"
echo "UNITY_PROJECT_PATH: '${{ env.UNITY_PROJECT_PATH }}'"
sparse-checkout: .github/
- uses: RageAgainstThePixel/job-builder@v1
id: setup-jobs
with:
build-options: ./.github/workflows/build-options.json
group-by: 'os'
outputs:
jobs: ${{ steps.setup-jobs.outputs.jobs }}
validate:
if: ${{ needs.setup.outputs.jobs }}
needs: setup
name: ${{ matrix.jobs.name }}
permissions:
contents: read
strategy:
matrix: ${{ fromJSON(needs.setup.outputs.jobs) }}
secrets: inherit
uses: ./.github/workflows/build.yml
with:
matrix: ${{ toJSON(matrix.jobs.matrix) }}
Loading
Loading