Try to get an indication

This commit is contained in:
Webber
2019-11-04 21:48:08 +01:00
parent 66245bb15d
commit 30867a0325
4 changed files with 48 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
FROM gableroux/unity3d:2019.2.11f1
LABEL "com.github.actions.name"="Get Unity License File"
LABEL "com.github.actions.description"="Acquire manual license file for Unity editor"
LABEL "com.github.actions.icon"="box"
LABEL "com.github.actions.color"="gray-dark"
LABEL "repository"="http://github.com/webbertakken/unity-actions"
LABEL "homepage"="http://github.com/webbertakken/unity-actions"
LABEL "maintainer"="Webber Takken <webber@takken.io>"
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@@ -0,0 +1,7 @@
# Get manual license file
Acquires manual license file for activating CI license.
## Usage
Unknown so far

View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -e
xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
/opt/Unity/Editor/Unity \
-batchmode \
-nographics \
-logFile /dev/stdout \
-createManualActivationFile \
echo "Use this file for manual activation and add it to \$UNITY_LICENSE variabe."
cat Unity_v2019.2.11f1.alf
cp Unity_v2019.2.11f1.alf $HOME/Unity_v2019.2.11f1.alf

View File

@@ -1,18 +1,25 @@
#!/usr/bin/env bash
set -x
set -e
echo "$UNITY_LICENSE" > /root/.local/share/unity3d/Unity/Unity_lic.ulf
set -x
echo "Testing for $TEST_PLATFORM"
${UNITY_EXECUTABLE:-xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' /opt/Unity/Editor/Unity} \
-projectPath $(pwd) \
-batchmode \
-nographics \
-logFile /dev/stdout \
-batchmode \
-nographics \
-verbose \
-quit \
-projectPath $GITHUB_WORKSPACE \
-runTests \
-testPlatform $TEST_PLATFORM \
-testResults $(pwd)/$TEST_PLATFORM-results.xml \
-logFile /dev/stdout \
-batchmode
-testResults $GITHUB_WORKSPACE/$TEST_PLATFORM-results.xml
UNITY_EXIT_CODE=$?