Skip to content
Open
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
12 changes: 12 additions & 0 deletions .github/workflows/build-options.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"10.0.22621.0",
"10.0.26100.0"
],
"store-association-path": [
"",
"src/__tests__/source/Package.StoreAssociation.xml"
],
"exclude": [
{
"uwp-package-type": "upload",
Expand All @@ -40,6 +44,14 @@
{
"uwp-subtarget": "HoloLens",
"uwp-arch": "x64"
},
{
"uwp-package-type": "sideload",
"store-association-path": "src/__tests__/source/Package.StoreAssociation.xml"
},
{
"uwp-package-type": "upload",
"store-association-path": ""
}
]
}
33 changes: 11 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
required: true
jobs:
build:
name: ${{ matrix.name }}
name: ${{ matrix.uwp-package-type }} ${{ matrix.uwp-arch }} ${{ matrix.uwp-subtarget }} ${{ matrix.windows-sdk-version }} ${{ matrix.certificate-type }}
strategy:
matrix: ${{ fromJSON(inputs.matrix) }}
fail-fast: false
Expand All @@ -23,8 +23,6 @@ jobs:
contents: read
env:
BUILD_OUTPUT_PATH: ${{ github.workspace }}/Builds/${{ matrix.build-target }}
TEMPLATE_PATH: ''
UNITY_PROJECT_PATH: '' # set by unity-setup action
steps:
- uses: actions/checkout@v4
- run: 'npm install -g openupm-cli'
Expand All @@ -33,38 +31,29 @@ jobs:
version-file: 'None'
build-targets: ${{ matrix.build-target }}
unity-version: ${{ matrix.unity-version }}
- name: Find Unity Template Path
run: |
$rootPath = $env:UNITY_EDITOR_PATH -replace "Editor.*", ""
Write-Host "ROOT_PATH=$rootPath"
$templatePath = Get-ChildItem -Recurse -Filter "com.unity.template.3d*.tgz" -Path $rootPath | Select-Object -First 1 | Select-Object -ExpandProperty FullName
Write-Host "TEMPLATE_PATH=$templatePath"
echo "TEMPLATE_PATH=$templatePath" >> $env:GITHUB_ENV
$projectPath = "${{ github.workspace }}/Test Project"
echo "UNITY_PROJECT_PATH=$projectPath" >> $env:GITHUB_ENV
shell: pwsh
- uses: buildalon/activate-unity-license@v1
with:
license: 'Personal'
username: ${{ secrets.UNITY_USERNAME }}
password: ${{ secrets.UNITY_PASSWORD }}
- uses: buildalon/unity-action@v1
name: Create Test Project
- uses: buildalon/create-unity-project@v1
id: project
with:
log-name: 'create-test-project'
args: '-quit -nographics -batchmode -createProject "${{ env.UNITY_PROJECT_PATH }}" -cloneFromTemplate "${{ env.TEMPLATE_PATH }}"'
project-name: 'Buildalon UWP Test Project'
- run: 'openupm add com.virtualmaker.buildalon'
name: Add Build Pipeline Package
working-directory: ${{ env.UNITY_PROJECT_PATH }}
- uses: buildalon/unity-action@v1
working-directory: ${{ steps.project.outputs.project-path }}
- uses: buildalon/unity-action@v2
name: '${{ matrix.build-target }}-Validate'
with:
project-path: ${{ steps.project.outputs.project-path }}
build-target: ${{ matrix.build-target }}
log-name: '${{ matrix.build-target }}-Validate'
args: '-quit -nographics -batchmode -executeMethod Buildalon.Editor.BuildPipeline.UnityPlayerBuildTools.ValidateProject -importTMProEssentialsAsset'
- uses: buildalon/unity-action@v1
- uses: buildalon/unity-action@v2
name: '${{ matrix.build-target }}-Build'
with:
project-path: ${{ steps.project.outputs.project-path }}
build-target: ${{ matrix.build-target }}
log-name: '${{ matrix.build-target }}-Build'
args: '-quit -nographics -batchmode -executeMethod Buildalon.Editor.BuildPipeline.UnityPlayerBuildTools.StartCommandLineBuild -buildOutputDirectory ${{ env.BUILD_OUTPUT_PATH }} -sceneList Assets/Scenes/SampleScene.unity -arch ${{ matrix.uwp-arch }} -wsaSubtarget ${{ matrix.uwp-subtarget }} -wsaUWPSDK ${{ matrix.windows-sdk-version }}'
Expand Down Expand Up @@ -113,6 +102,7 @@ jobs:
certificate-path: ${{ matrix.certificate-type == 'custom' && format('{0}/TestCert.pfx', github.workspace) || '' }}
certificate-password: ${{ matrix.certificate-type == 'custom' && 'TestPassword123' || '' }}
windows-sdk-version: ${{ matrix.windows-sdk-version }}
store-association-path: ${{ matrix.uwp-package-type == 'upload' && matrix.store-association-path || '' }}
- name: Validate Outputs
shell: bash
run: |
Expand Down Expand Up @@ -198,7 +188,6 @@ jobs:
with:
retention-days: 1
overwrite: true
name: ${{ matrix.unity-version }} ${{ matrix.name }}
name: ${{ matrix.unity-version }} ${{ matrix.uwp-package-type }} ${{ matrix.uwp-arch }} ${{ matrix.uwp-subtarget }} ${{ matrix.windows-sdk-version }} ${{ matrix.certificate-type }}
path: |
${{ github.workspace }}/**/*.log
${{ env.BUILD_OUTPUT_PATH }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
example/
Loading
Loading