Skip to content

Commit 81f132b

Browse files
committed
fix
1 parent 3e97c8d commit 81f132b

File tree

44 files changed

+330
-330
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+330
-330
lines changed

.github/workflows/build.yaml

Lines changed: 90 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,90 @@
1-
# Copyright 2023 Google LLC
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
14-
15-
# Workflow to build EDM4U packages and compute their hash
16-
name: Build
17-
18-
on:
19-
schedule:
20-
- cron: "0 10 * * *" # 10am UTC = 2am PST
21-
22-
workflow_dispatch:
23-
inputs:
24-
unity_version:
25-
description: 'Unity version'
26-
default: '2019'
27-
type: string
28-
required: true
29-
30-
env:
31-
# Use SHA256 for hashing files.
32-
hashCommand: "sha256sum"
33-
34-
jobs:
35-
check_and_prepare:
36-
runs-on: ubuntu-latest
37-
outputs:
38-
unity_version: ${{ steps.set_outputs.outputs.unity_version }}
39-
steps:
40-
- id: set_outputs
41-
run: |
42-
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
43-
echo "unity_version=${{ github.event.inputs.unity_version }}" >> $GITHUB_OUTPUT
44-
else
45-
# inputs are not available for non "workflow_dispatch" events. Therefore, set default value here.
46-
echo "unity_version=2019" >> $GITHUB_OUTPUT
47-
fi
48-
49-
- name: Print output
50-
run: |
51-
echo outputs.unity_version : ${{ steps.set_outputs.outputs.unity_version }}
52-
53-
build_macos:
54-
name: build-macos-unity${{ needs.check_and_prepare.outputs.unity_version }}
55-
needs: [check_and_prepare]
56-
uses: ./.github/workflows/build_macos.yaml
57-
with:
58-
unity_version: ${{ needs.check_and_prepare.outputs.unity_version }}
59-
60-
finalizing:
61-
# Only compute SHA hash for macOS build
62-
name: finalizing-macOS-unity${{ needs.check_and_prepare.outputs.unity_version }}
63-
needs: [check_and_prepare, build_macos]
64-
runs-on: ubuntu-latest
65-
steps:
66-
- name: Fetch All builds
67-
uses: actions/download-artifact@v3
68-
with:
69-
path: built_artifact
70-
71-
- name: Compute Plugin Hash
72-
shell: bash
73-
run: |
74-
# Compute hash for .tgz package
75-
pushd built_artifact/TarballPackage_macOS
76-
tgz_files_list=$(find -type f -name '*.tgz')
77-
for tgz_file in "${tgz_files_list[@]}"; do
78-
echo tgz_file
79-
${{ env.hashCommand }} --tag ${tgz_file} >> edm4u_hash.txt
80-
done
81-
echo "::warning ::$(cat edm4u_hash.txt)"
82-
popd
83-
84-
# Compute hash for .unitypackage package
85-
pushd built_artifact/AssetPackage_macOS
86-
${{ env.hashCommand }} --tag external-dependency-manager.unitypackage >> edm4u_hash.txt
87-
echo "::warning ::$(cat edm4u_hash.txt)"
88-
popd
89-
90-
1+
# Copyright 2023 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Workflow to build EDM4U packages and compute their hash
16+
name: Build
17+
18+
on:
19+
schedule:
20+
- cron: "0 10 * * *" # 10am UTC = 2am PST
21+
22+
workflow_dispatch:
23+
inputs:
24+
unity_version:
25+
description: 'Unity version'
26+
default: '2019'
27+
type: string
28+
required: true
29+
30+
env:
31+
# Use SHA256 for hashing files.
32+
hashCommand: "sha256sum"
33+
34+
jobs:
35+
check_and_prepare:
36+
runs-on: ubuntu-latest
37+
outputs:
38+
unity_version: ${{ steps.set_outputs.outputs.unity_version }}
39+
steps:
40+
- id: set_outputs
41+
run: |
42+
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
43+
echo "unity_version=${{ github.event.inputs.unity_version }}" >> $GITHUB_OUTPUT
44+
else
45+
# inputs are not available for non "workflow_dispatch" events. Therefore, set default value here.
46+
echo "unity_version=2019" >> $GITHUB_OUTPUT
47+
fi
48+
49+
- name: Print output
50+
run: |
51+
echo outputs.unity_version : ${{ steps.set_outputs.outputs.unity_version }}
52+
53+
build_macos:
54+
name: build-macos-unity${{ needs.check_and_prepare.outputs.unity_version }}
55+
needs: [check_and_prepare]
56+
uses: ./.github/workflows/build_macos.yaml
57+
with:
58+
unity_version: ${{ needs.check_and_prepare.outputs.unity_version }}
59+
60+
finalizing:
61+
# Only compute SHA hash for macOS build
62+
name: finalizing-macOS-unity${{ needs.check_and_prepare.outputs.unity_version }}
63+
needs: [check_and_prepare, build_macos]
64+
runs-on: ubuntu-latest
65+
steps:
66+
- name: Fetch All builds
67+
uses: actions/download-artifact@v3
68+
with:
69+
path: built_artifact
70+
71+
- name: Compute Plugin Hash
72+
shell: bash
73+
run: |
74+
# Compute hash for .tgz package
75+
pushd built_artifact/TarballPackage_macOS
76+
tgz_files_list=$(find -type f -name '*.tgz')
77+
for tgz_file in "${tgz_files_list[@]}"; do
78+
echo tgz_file
79+
${{ env.hashCommand }} --tag ${tgz_file} >> edm4u_hash.txt
80+
done
81+
echo "::warning ::$(cat edm4u_hash.txt)"
82+
popd
83+
84+
# Compute hash for .unitypackage package
85+
pushd built_artifact/AssetPackage_macOS
86+
${{ env.hashCommand }} --tag external-dependency-manager.unitypackage >> edm4u_hash.txt
87+
echo "::warning ::$(cat edm4u_hash.txt)"
88+
popd
89+
90+

gradlew

100755100644
File mode changed.

gradlew.bat

Lines changed: 90 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,90 @@
1-
@if "%DEBUG%" == "" @echo off
2-
@rem ##########################################################################
3-
@rem
4-
@rem Gradle startup script for Windows
5-
@rem
6-
@rem ##########################################################################
7-
8-
@rem Set local scope for the variables with windows NT shell
9-
if "%OS%"=="Windows_NT" setlocal
10-
11-
set DIRNAME=%~dp0
12-
if "%DIRNAME%" == "" set DIRNAME=.
13-
set APP_BASE_NAME=%~n0
14-
set APP_HOME=%DIRNAME%
15-
16-
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17-
set DEFAULT_JVM_OPTS=
18-
19-
@rem Find java.exe
20-
if defined JAVA_HOME goto findJavaFromJavaHome
21-
22-
set JAVA_EXE=java.exe
23-
%JAVA_EXE% -version >NUL 2>&1
24-
if "%ERRORLEVEL%" == "0" goto init
25-
26-
echo.
27-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28-
echo.
29-
echo Please set the JAVA_HOME variable in your environment to match the
30-
echo location of your Java installation.
31-
32-
goto fail
33-
34-
:findJavaFromJavaHome
35-
set JAVA_HOME=%JAVA_HOME:"=%
36-
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37-
38-
if exist "%JAVA_EXE%" goto init
39-
40-
echo.
41-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42-
echo.
43-
echo Please set the JAVA_HOME variable in your environment to match the
44-
echo location of your Java installation.
45-
46-
goto fail
47-
48-
:init
49-
@rem Get command-line arguments, handling Windows variants
50-
51-
if not "%OS%" == "Windows_NT" goto win9xME_args
52-
if "%@eval[2+2]" == "4" goto 4NT_args
53-
54-
:win9xME_args
55-
@rem Slurp the command line arguments.
56-
set CMD_LINE_ARGS=
57-
set _SKIP=2
58-
59-
:win9xME_args_slurp
60-
if "x%~1" == "x" goto execute
61-
62-
set CMD_LINE_ARGS=%*
63-
goto execute
64-
65-
:4NT_args
66-
@rem Get arguments from the 4NT Shell from JP Software
67-
set CMD_LINE_ARGS=%$
68-
69-
:execute
70-
@rem Setup the command line
71-
72-
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73-
74-
@rem Execute Gradle
75-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76-
77-
:end
78-
@rem End local scope for the variables with windows NT shell
79-
if "%ERRORLEVEL%"=="0" goto mainEnd
80-
81-
:fail
82-
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83-
rem the _cmd.exe /c_ return code!
84-
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85-
exit /b 1
86-
87-
:mainEnd
88-
if "%OS%"=="Windows_NT" endlocal
89-
90-
:omega
1+
@if "%DEBUG%" == "" @echo off
2+
@rem ##########################################################################
3+
@rem
4+
@rem Gradle startup script for Windows
5+
@rem
6+
@rem ##########################################################################
7+
8+
@rem Set local scope for the variables with windows NT shell
9+
if "%OS%"=="Windows_NT" setlocal
10+
11+
set DIRNAME=%~dp0
12+
if "%DIRNAME%" == "" set DIRNAME=.
13+
set APP_BASE_NAME=%~n0
14+
set APP_HOME=%DIRNAME%
15+
16+
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17+
set DEFAULT_JVM_OPTS=
18+
19+
@rem Find java.exe
20+
if defined JAVA_HOME goto findJavaFromJavaHome
21+
22+
set JAVA_EXE=java.exe
23+
%JAVA_EXE% -version >NUL 2>&1
24+
if "%ERRORLEVEL%" == "0" goto init
25+
26+
echo.
27+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28+
echo.
29+
echo Please set the JAVA_HOME variable in your environment to match the
30+
echo location of your Java installation.
31+
32+
goto fail
33+
34+
:findJavaFromJavaHome
35+
set JAVA_HOME=%JAVA_HOME:"=%
36+
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37+
38+
if exist "%JAVA_EXE%" goto init
39+
40+
echo.
41+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42+
echo.
43+
echo Please set the JAVA_HOME variable in your environment to match the
44+
echo location of your Java installation.
45+
46+
goto fail
47+
48+
:init
49+
@rem Get command-line arguments, handling Windows variants
50+
51+
if not "%OS%" == "Windows_NT" goto win9xME_args
52+
if "%@eval[2+2]" == "4" goto 4NT_args
53+
54+
:win9xME_args
55+
@rem Slurp the command line arguments.
56+
set CMD_LINE_ARGS=
57+
set _SKIP=2
58+
59+
:win9xME_args_slurp
60+
if "x%~1" == "x" goto execute
61+
62+
set CMD_LINE_ARGS=%*
63+
goto execute
64+
65+
:4NT_args
66+
@rem Get arguments from the 4NT Shell from JP Software
67+
set CMD_LINE_ARGS=%$
68+
69+
:execute
70+
@rem Setup the command line
71+
72+
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73+
74+
@rem Execute Gradle
75+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76+
77+
:end
78+
@rem End local scope for the variables with windows NT shell
79+
if "%ERRORLEVEL%"=="0" goto mainEnd
80+
81+
:fail
82+
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83+
rem the _cmd.exe /c_ return code!
84+
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85+
exit /b 1
86+
87+
:mainEnd
88+
if "%OS%"=="Windows_NT" endlocal
89+
90+
:omega

0 commit comments

Comments
 (0)