This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactored action from composite to javascript
- Loading branch information
1 parent
1cd0aae
commit 5a15e9c
Showing
13 changed files
with
4,860 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: validate | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.ref }} | ||
|
||
jobs: | ||
validate: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
#max-parallel: 2 # Use this if you're activating pro license with matrix | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
build-target: StandaloneLinux64 | ||
- os: windows-latest | ||
build-target: StandaloneWindows64 | ||
- os: macos-latest | ||
build-target: StandaloneOSX | ||
|
||
steps: | ||
- name: checkout self | ||
uses: actions/checkout@v3 | ||
|
||
- name: checkout test project | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: xrtk/com.xrtk.test | ||
path: test-project | ||
|
||
- uses: xrtk/unity-setup@v4 | ||
with: | ||
version-file-path: 'test-project/**/ProjectSettings/ProjectVersion.txt' | ||
|
||
- uses: xrtk/activate-unity-license@v1 | ||
with: | ||
username: ${{ secrets.UNITY_USERNAME }} | ||
password: ${{ secrets.UNITY_PASSWORD }} | ||
serial: ${{ secrets.UNITY_SERIAL }} # Required for pro/plus activations | ||
license-type: 'Personal' # Chooses license type to use [ Personal, Professional ] | ||
|
||
- name: xrtk/unity-action | ||
uses: ./ | ||
with: | ||
log-name: 'Test' | ||
args: '-quit -batchmode -nographics' | ||
|
||
- uses: actions/upload-artifact@v3 | ||
name: Upload Artifacts | ||
if: always() | ||
with: | ||
name: '${{ runner.os }}-${{ matrix.build-target }}-Artifacts' | ||
path: '${{ env.UNITY_PROJECT_PATH }}/Builds' | ||
|
||
- name: Clean Artifacts | ||
if: always() | ||
run: | | ||
# Clean Artifacts | ||
$artifacts = "${{ env.UNITY_PROJECT_PATH }}/Builds" | ||
if (Test-Path -Path $artifacts) { | ||
Remove-Item $artifacts -Force -Recurse | ||
} | ||
shell: pwsh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.