mirror of
https://github.com/game-ci/unity-actions.git
synced 2026-01-29 04:39:07 +08:00
Try to get an indication
This commit is contained in:
14
get-manual-license-file/Dockerfile
Normal file
14
get-manual-license-file/Dockerfile
Normal 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"]
|
||||
7
get-manual-license-file/README.md
Normal file
7
get-manual-license-file/README.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# Get manual license file
|
||||
|
||||
Acquires manual license file for activating CI license.
|
||||
|
||||
## Usage
|
||||
|
||||
Unknown so far
|
||||
15
get-manual-license-file/entrypoint.sh
Normal file
15
get-manual-license-file/entrypoint.sh
Normal 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
|
||||
@@ -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=$?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user