Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
36 changes: 27 additions & 9 deletions .github/workflows/build-options.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,41 @@
"unity-version": [
"4.7.2",
"5.6.7f1 (e80cc3114ac1)",
"2017.x",
"2018.x",
"2019.x",
"2020.x",
"2021.x",
"2022.x",
"6000.0.x",
"6000.1.x",
"6000.2.x"
"2017",
"2018",
"2019",
"2020",
"2021",
"2022",
"6000.0",
"6000.1",
"6000.2"
],
"include": [
{
"os": "ubuntu-latest",
"build-target": "StandaloneLinux64"
},
{
"os": "ubuntu-latest",
"build-target": "WebGL",
"build-args": "-colorSpace Gamma"
},
{
"os": "ubuntu-latest",
"build-target": "Android"
},
{
"os": "windows-latest",
"build-target": "StandaloneWindows64"
},
{
"os": "macos-latest",
"build-target": "StandaloneOSX"
},
{
"os": "macos-latest",
"build-target": "iOS"
}
],
"exclude": [
Expand All @@ -43,6 +56,11 @@
{
"os": "ubuntu-latest",
"unity-version": "5.6.7f1 (e80cc3114ac1)"
},
{
"os": "macos-latest",
"build-target": "iOS",
"unity-version": "5.6.7f1 (e80cc3114ac1)"
}
]
}
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: tests
name: integration-tests
on:
push:
branches: ['main']
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/unity-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
runs-on: ${{ matrix.os }}
permissions:
contents: read
timeout-minutes: 30
env:
UNITY_PROJECT_PATH: '' # Set from create-project step
RUN_BUILD: '' # Set to true if the build pipeline package can be installed and used
Expand All @@ -30,19 +29,19 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 24.x
- name: setup unity-cli
- name: Setup unity-cli
shell: bash
run: |
npm ci
npm run build
npm run link
unity-cli --version
- name: setup unity
- name: Setup Unity
shell: bash
run: |
unity-cli hub-install --auto-update
unity-cli setup-unity --unity-version "${{ matrix.unity-version }}" --build-targets "${{ matrix.build-target }}" --json
- name: verify UNITY_HUB_PATH and UNITY_EDITOR_PATH variables
- name: Verify UNITY_HUB_PATH and UNITY_EDITOR_PATH variables
shell: bash
run: |
echo "UNITY_HUB_PATH: ${UNITY_HUB_PATH}"
Expand All @@ -58,16 +57,16 @@ jobs:
echo "Error: UNITY_EDITOR_PATH is not set"
exit 1
fi
- name: activate license
- name: Activate License
shell: bash
run: |
unity-cli activate-license --license personal --email "${{ secrets.UNITY_USERNAME }}" --password "${{ secrets.UNITY_PASSWORD }}"
- name: create unity project
- name: Create Unity Project
shell: bash
run: |
unity-cli list-project-templates --unity-editor "${UNITY_EDITOR_PATH}" --json
unity-cli create-project --name "Unity Project" --unity-editor "${UNITY_EDITOR_PATH}" --json
- name: verify UNITY_PROJECT_PATH variable
- name: Verify UNITY_PROJECT_PATH variable
shell: bash
run: |
if [ -z "${UNITY_PROJECT_PATH}" ]; then
Expand Down Expand Up @@ -96,26 +95,27 @@ jobs:
npm install -g openupm-cli
cd "${UNITY_PROJECT_PATH}"
openupm add com.utilities.buildpipeline
- name: Build project
- name: Build Project
if: ${{ env.RUN_BUILD == 'true' }}
timeout-minutes: 60
shell: bash
run: |
unity-cli run --log-name Validate -quit -nographics -batchmode -executeMethod Utilities.Editor.BuildPipeline.UnityPlayerBuildTools.ValidateProject -importTMProEssentialsAsset
unity-cli run --log-name Build -quit -nographics -batchmode -executeMethod Utilities.Editor.BuildPipeline.UnityPlayerBuildTools.StartCommandLineBuild -sceneList Assets/Scenes/SampleScene.unity
- name: Uninstall editor
unity-cli run --log-name Build -quit -nographics -batchmode -buildTarget ${{ matrix.build-target }} -executeMethod Utilities.Editor.BuildPipeline.UnityPlayerBuildTools.StartCommandLineBuild -sceneList Assets/Scenes/SampleScene.unity ${{ matrix.build-args }}
- name: Uninstall Editor
shell: bash
run: |
if [ -z "${UNITY_EDITOR_PATH}" ]; then
echo "UNITY_EDITOR_PATH is not set, skipping uninstall"
exit 0
fi
unity-cli uninstall-unity --unity-editor "${UNITY_EDITOR_PATH}"
- name: Return license
- name: Return License
if: always()
shell: bash
run: |
unity-cli return-license --license personal
- name: upload logs
- name: Upload Logs
if: always()
uses: actions/upload-artifact@v4
with:
Expand Down
Loading