File tree Expand file tree Collapse file tree 12 files changed +321
-317
lines changed Expand file tree Collapse file tree 12 files changed +321
-317
lines changed Original file line number Diff line number Diff line change 4242 strategy :
4343 fail-fast : false
4444 env :
45- # LC_ALL, LANG and U3D_PASSWORD are needed for U3D.
46- LC_ALL : en_US.UTF-8
47- LANG : en_US.UTF-8
48- U3D_PASSWORD : " "
49- # Disable checking for U3D updates, since it is buggy
50- U3D_SKIP_UPDATE_CHECK : 1
5145 CCACHE_DIR : ${{ github.workspace }}/ccache_dir
5246
5347 steps :
@@ -103,32 +97,16 @@ jobs:
10397 echo "NDK_ROOT=/tmp/android-ndk-r21e" >> $GITHUB_ENV
10498 echo "ANDROID_NDK_HOME=/tmp/android-ndk-r21e" >> $GITHUB_ENV
10599
106- - name : Install Unity installer (U3D)
107- uses : nick-invision/retry@v2
108- with :
109- timeout_minutes : 10
110- max_attempts : 3
111- shell : bash
112- command : gem install u3d -v 1.2.3
113-
114100 - name : Install python deps
115101 shell : bash
116102 run : |
117103 pip install -r scripts/gha/requirements.txt
118104
119- - name : Install Unity
120- uses : nick-invision/retry@v2
105+ - id : unity_setup
106+ uses : firebase/firebase-unity-sdk/gha/unity@main
121107 with :
122- timeout_minutes : 15
123- max_attempts : 3
124- shell : bash
125- command : |
126- python scripts/gha/unity_installer.py --install --platforms ${{ inputs.unity_platform_name }} --version ${{ inputs.unity_version }}
127-
128- - name : Setup Unity path
129- shell : bash
130- run : |
131- echo "UNITY_ROOT_DIR=$( python scripts/gha/print_matrix_configuration.py -u ${{ inputs.unity_version }} -k unity_path )" >> $GITHUB_ENV
108+ version : ${{ inputs.unity_version }}
109+ platforms : ${{ inputs.unity_platform_name }}
132110
133111 - name : Display Swig Version
134112 shell : bash
Original file line number Diff line number Diff line change 4343 fail-fast : false
4444
4545 env :
46- # LC_ALL, LANG and U3D_PASSWORD are needed for U3D.
47- LC_ALL : en_US.UTF-8
48- LANG : en_US.UTF-8
49- U3D_PASSWORD : " "
50- # Disable checking for U3D updates, since it is buggy
51- U3D_SKIP_UPDATE_CHECK : 1
5246 xcodeVersion : " 13.3.1"
5347
5448 steps :
@@ -82,32 +76,16 @@ jobs:
8276 python scripts/gha/install_prereqs_desktop.py
8377 cd ..
8478
85- - name : Install Unity installer (U3D)
86- uses : nick-invision/retry@v2
87- with :
88- timeout_minutes : 10
89- max_attempts : 3
90- shell : bash
91- command : gem install u3d -v 1.2.3
92-
9379 - name : Install python deps
9480 shell : bash
9581 run : |
9682 pip install -r scripts/gha/requirements.txt
9783
98- - name : Install Unity
99- uses : nick-invision/retry@v2
84+ - id : unity_setup
85+ uses : firebase/firebase-unity-sdk/gha/unity@main
10086 with :
101- timeout_minutes : 15
102- max_attempts : 3
103- shell : bash
104- command : |
105- python scripts/gha/unity_installer.py --install --platforms ${{ inputs.unity_platform_name }} --version ${{ inputs.unity_version }}
106-
107- - name : Setup Unity path
108- shell : bash
109- run : |
110- echo "UNITY_ROOT_DIR=$( python scripts/gha/print_matrix_configuration.py -u ${{ inputs.unity_version }} -k unity_path )" >> $GITHUB_ENV
87+ version : ${{ inputs.unity_version }}
88+ platforms : ${{ inputs.unity_platform_name }}
11189
11290 - name : Build SDK (iOS)
11391 timeout-minutes : 90
Original file line number Diff line number Diff line change 4242 strategy :
4343 fail-fast : false
4444
45- env :
46- # LC_ALL, LANG and U3D_PASSWORD are needed for U3D.
47- LC_ALL : en_US.UTF-8
48- LANG : en_US.UTF-8
49- U3D_PASSWORD : " "
50- # Disable checking for U3D updates, since it is buggy
51- U3D_SKIP_UPDATE_CHECK : 1
5245 steps :
5346 - uses : actions/checkout@v3
5447 with :
6861 with :
6962 ruby-version : 3.0.2
7063
71- - name : Install Unity installer (U3D)
72- uses : nick-invision/retry@v2
73- with :
74- timeout_minutes : 10
75- max_attempts : 3
76- shell : bash
77- command : gem install u3d -v 1.2.3
78-
7964 - name : Setup python
8065 uses : actions/setup-python@v4
8166 with :
@@ -98,19 +83,15 @@ jobs:
9883 run : |
9984 sudo apt install openssl
10085
101- - name : Install Unity
102- uses : nick-invision/retry@v2
86+ - id : unity_setup
87+ uses : firebase/firebase-unity-sdk/gha/unity@main
10388 with :
104- timeout_minutes : 15
105- max_attempts : 3
106- shell : bash
107- command : |
108- python scripts/gha/unity_installer.py --install --platforms ${{ inputs.unity_platform_name }} --version ${{ inputs.unity_version }}
89+ version : ${{ inputs.unity_version }}
90+ platforms : ${{ inputs.unity_platform_name }}
10991
110- - name : Setup Unity path
92+ - name : Setup Swig Env
11193 shell : bash
11294 run : |
113- echo "UNITY_ROOT_DIR=$( python scripts/gha/print_matrix_configuration.py -u ${{inputs.unity_version}} -k unity_path )" >> $GITHUB_ENV
11495 echo "$(swig -swiglib)" >> $GITHUB_PATH
11596 swig -swiglib
11697 echo "SWIG_DIR=$(swig -swiglib)" >> $GITHUB_ENV
Original file line number Diff line number Diff line change 4141 runs-on : macos-latest
4242 strategy :
4343 fail-fast : false
44-
45- env :
46- # LC_ALL, LANG and U3D_PASSWORD are needed for U3D.
47- LC_ALL : en_US.UTF-8
48- LANG : en_US.UTF-8
49- U3D_PASSWORD : " "
50- # Disable checking for U3D updates, since it is buggy
51- U3D_SKIP_UPDATE_CHECK : 1
44+
5245 steps :
5346 - uses : actions/checkout@v3
5447 with :
6861 with :
6962 ruby-version : 3.0.2
7063
71- - name : Install Unity installer (U3D)
72- uses : nick-invision/retry@v2
73- with :
74- timeout_minutes : 10
75- max_attempts : 3
76- shell : bash
77- command : gem install u3d -v 1.2.3
78-
7964 - name : Setup python
8065 uses : actions/setup-python@v4
8166 with :
@@ -104,19 +89,15 @@ jobs:
10489 # brew won't overwrite MacOS system default OpenSSL, so force it here.
10590 echo "OPENSSL_ROOT_DIR=$(brew --prefix openssl --installed)" >> $GITHUB_ENV
10691
107- - name : Install Unity
108- uses : nick-invision/retry@v2
92+ - id : unity_setup
93+ uses : firebase/firebase-unity-sdk/gha/unity@main
10994 with :
110- timeout_minutes : 15
111- max_attempts : 3
112- shell : bash
113- command : |
114- python scripts/gha/unity_installer.py --install --platforms ${{ inputs.unity_platform_name }} --version ${{ inputs.unity_version }}
95+ version : ${{ inputs.unity_version }}
96+ platforms : ${{ inputs.unity_platform_name }}
11597
116- - name : Setup Unity path
98+ - name : Setup Swig Env
11799 shell : bash
118100 run : |
119- echo "UNITY_ROOT_DIR=$( python scripts/gha/print_matrix_configuration.py -u ${{ inputs.unity_version }} -k unity_path )" >> $GITHUB_ENV
120101 echo "$(swig -swiglib)" >> $GITHUB_PATH
121102 swig -swiglib
122103 echo "SWIG_DIR=$(swig -swiglib)" >> $GITHUB_ENV
Original file line number Diff line number Diff line change 6464 fail-fast : false
6565
6666 env :
67- # LC_ALL, LANG and U3D_PASSWORD are needed for U3D.
68- LC_ALL : en_US.UTF-8
69- LANG : en_US.UTF-8
70- U3D_PASSWORD : " "
71- # Disable checking for U3D updates, since it is buggy
72- U3D_SKIP_UPDATE_CHECK : 1
7367 xcodeVersion : " 13.3.1"
7468
7569 steps :
@@ -103,14 +97,6 @@ jobs:
10397 python scripts/gha/install_prereqs_desktop.py
10498 cd ..
10599
106- - name : Install Unity installer (U3D)
107- uses : nick-invision/retry@v2
108- with :
109- timeout_minutes : 10
110- max_attempts : 3
111- shell : bash
112- command : gem install u3d -v 1.2.3
113-
114100 - name : Install python deps
115101 shell : bash
116102 run : |
@@ -122,19 +108,11 @@ jobs:
122108 run : |
123109 pod repo add cocoapods https://github.com/CocoaPods/Specs.git
124110
125- - name : Install Unity
126- uses : nick-invision/retry@v2
111+ - id : unity_setup
112+ uses : firebase/firebase-unity-sdk/gha/unity@main
127113 with :
128- timeout_minutes : 15
129- max_attempts : 3
130- shell : bash
131- command : |
132- python scripts/gha/unity_installer.py --install --platforms ${{ inputs.unity_platform_name }} --version ${{ inputs.unity_version }}
133-
134- - name : Setup Unity path
135- shell : bash
136- run : |
137- echo "UNITY_ROOT_DIR=$( python scripts/gha/print_matrix_configuration.py -u ${{ inputs.unity_version }} -k unity_path )" >> $GITHUB_ENV
114+ version : ${{ inputs.unity_version }}
115+ platforms : ${{ inputs.unity_platform_name }}
138116
139117 - name : Build SDK (tvOS)
140118 timeout-minutes : 90
Original file line number Diff line number Diff line change 4141 runs-on : windows-2019
4242 strategy :
4343 fail-fast : false
44-
45- env :
46- # LC_ALL, LANG and U3D_PASSWORD are needed for U3D.
47- LC_ALL : en_US.UTF-8
48- LANG : en_US.UTF-8
49- U3D_PASSWORD : " "
50- # Disable checking for U3D updates, since it is buggy
51- U3D_SKIP_UPDATE_CHECK : 1
44+
5245 steps :
5346 - uses : actions/checkout@v3
5447 with :
7164 with :
7265 ruby-version : 3.0.2
7366
74- - name : Install Unity installer (U3D)
75- uses : nick-invision/retry@v2
76- with :
77- timeout_minutes : 10
78- max_attempts : 3
79- shell : bash
80- command : gem install u3d -v 1.2.3
81-
8267 - name : Setup python
8368 uses : actions/setup-python@v4
8469 with :
@@ -104,19 +89,15 @@ jobs:
10489 run : |
10590 choco install openssl -r
10691
107- - name : Install Unity
108- uses : nick-invision/retry@v2
92+ - id : unity_setup
93+ uses : firebase/firebase-unity-sdk/gha/unity@main
10994 with :
110- timeout_minutes : 15
111- max_attempts : 3
112- shell : bash
113- command : |
114- python scripts/gha/unity_installer.py --install --platforms ${{ inputs.unity_platform_name }} --version ${{ inputs.unity_version }}
95+ version : ${{ inputs.unity_version }}
96+ platforms : ${{ inputs.unity_platform_name }}
11597
116- - name : Setup Unity path
98+ - name : Setup Swig Env
11799 shell : bash
118100 run : |
119- echo "UNITY_ROOT_DIR=$( python scripts/gha/print_matrix_configuration.py -u ${{inputs.unity_version}} -k unity_path )" >> $GITHUB_ENV
120101 echo "$(swig -swiglib)" >> $GITHUB_PATH
121102 swig -swiglib
122103 echo "SWIG_DIR=$(swig -swiglib)" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments