File tree 12 files changed +321
-317
lines changed
12 files changed +321
-317
lines changed Original file line number Diff line number Diff line change 42
42
strategy :
43
43
fail-fast : false
44
44
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
51
45
CCACHE_DIR : ${{ github.workspace }}/ccache_dir
52
46
53
47
steps :
@@ -103,32 +97,16 @@ jobs:
103
97
echo "NDK_ROOT=/tmp/android-ndk-r21e" >> $GITHUB_ENV
104
98
echo "ANDROID_NDK_HOME=/tmp/android-ndk-r21e" >> $GITHUB_ENV
105
99
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
-
114
100
- name : Install python deps
115
101
shell : bash
116
102
run : |
117
103
pip install -r scripts/gha/requirements.txt
118
104
119
- - name : Install Unity
120
- uses : nick-invision/retry@v2
105
+ - id : unity_setup
106
+ uses : firebase/firebase-unity-sdk/gha/unity@main
121
107
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 }}
132
110
133
111
- name : Display Swig Version
134
112
shell : bash
Original file line number Diff line number Diff line change 43
43
fail-fast : false
44
44
45
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
52
46
xcodeVersion : " 13.3.1"
53
47
54
48
steps :
@@ -82,32 +76,16 @@ jobs:
82
76
python scripts/gha/install_prereqs_desktop.py
83
77
cd ..
84
78
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
-
93
79
- name : Install python deps
94
80
shell : bash
95
81
run : |
96
82
pip install -r scripts/gha/requirements.txt
97
83
98
- - name : Install Unity
99
- uses : nick-invision/retry@v2
84
+ - id : unity_setup
85
+ uses : firebase/firebase-unity-sdk/gha/unity@main
100
86
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 }}
111
89
112
90
- name : Build SDK (iOS)
113
91
timeout-minutes : 90
Original file line number Diff line number Diff line change 42
42
strategy :
43
43
fail-fast : false
44
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
52
45
steps :
53
46
- uses : actions/checkout@v3
54
47
with :
68
61
with :
69
62
ruby-version : 3.0.2
70
63
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
-
79
64
- name : Setup python
80
65
uses : actions/setup-python@v4
81
66
with :
@@ -98,19 +83,15 @@ jobs:
98
83
run : |
99
84
sudo apt install openssl
100
85
101
- - name : Install Unity
102
- uses : nick-invision/retry@v2
86
+ - id : unity_setup
87
+ uses : firebase/firebase-unity-sdk/gha/unity@main
103
88
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 }}
109
91
110
- - name : Setup Unity path
92
+ - name : Setup Swig Env
111
93
shell : bash
112
94
run : |
113
- echo "UNITY_ROOT_DIR=$( python scripts/gha/print_matrix_configuration.py -u ${{inputs.unity_version}} -k unity_path )" >> $GITHUB_ENV
114
95
echo "$(swig -swiglib)" >> $GITHUB_PATH
115
96
swig -swiglib
116
97
echo "SWIG_DIR=$(swig -swiglib)" >> $GITHUB_ENV
Original file line number Diff line number Diff line change 41
41
runs-on : macos-latest
42
42
strategy :
43
43
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
+
52
45
steps :
53
46
- uses : actions/checkout@v3
54
47
with :
68
61
with :
69
62
ruby-version : 3.0.2
70
63
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
-
79
64
- name : Setup python
80
65
uses : actions/setup-python@v4
81
66
with :
@@ -104,19 +89,15 @@ jobs:
104
89
# brew won't overwrite MacOS system default OpenSSL, so force it here.
105
90
echo "OPENSSL_ROOT_DIR=$(brew --prefix openssl --installed)" >> $GITHUB_ENV
106
91
107
- - name : Install Unity
108
- uses : nick-invision/retry@v2
92
+ - id : unity_setup
93
+ uses : firebase/firebase-unity-sdk/gha/unity@main
109
94
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 }}
115
97
116
- - name : Setup Unity path
98
+ - name : Setup Swig Env
117
99
shell : bash
118
100
run : |
119
- echo "UNITY_ROOT_DIR=$( python scripts/gha/print_matrix_configuration.py -u ${{ inputs.unity_version }} -k unity_path )" >> $GITHUB_ENV
120
101
echo "$(swig -swiglib)" >> $GITHUB_PATH
121
102
swig -swiglib
122
103
echo "SWIG_DIR=$(swig -swiglib)" >> $GITHUB_ENV
Original file line number Diff line number Diff line change 64
64
fail-fast : false
65
65
66
66
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
73
67
xcodeVersion : " 13.3.1"
74
68
75
69
steps :
@@ -103,14 +97,6 @@ jobs:
103
97
python scripts/gha/install_prereqs_desktop.py
104
98
cd ..
105
99
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
-
114
100
- name : Install python deps
115
101
shell : bash
116
102
run : |
@@ -122,19 +108,11 @@ jobs:
122
108
run : |
123
109
pod repo add cocoapods https://github.com/CocoaPods/Specs.git
124
110
125
- - name : Install Unity
126
- uses : nick-invision/retry@v2
111
+ - id : unity_setup
112
+ uses : firebase/firebase-unity-sdk/gha/unity@main
127
113
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 }}
138
116
139
117
- name : Build SDK (tvOS)
140
118
timeout-minutes : 90
Original file line number Diff line number Diff line change 41
41
runs-on : windows-2019
42
42
strategy :
43
43
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
+
52
45
steps :
53
46
- uses : actions/checkout@v3
54
47
with :
71
64
with :
72
65
ruby-version : 3.0.2
73
66
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
-
82
67
- name : Setup python
83
68
uses : actions/setup-python@v4
84
69
with :
@@ -104,19 +89,15 @@ jobs:
104
89
run : |
105
90
choco install openssl -r
106
91
107
- - name : Install Unity
108
- uses : nick-invision/retry@v2
92
+ - id : unity_setup
93
+ uses : firebase/firebase-unity-sdk/gha/unity@main
109
94
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 }}
115
97
116
- - name : Setup Unity path
98
+ - name : Setup Swig Env
117
99
shell : bash
118
100
run : |
119
- echo "UNITY_ROOT_DIR=$( python scripts/gha/print_matrix_configuration.py -u ${{inputs.unity_version}} -k unity_path )" >> $GITHUB_ENV
120
101
echo "$(swig -swiglib)" >> $GITHUB_PATH
121
102
swig -swiglib
122
103
echo "SWIG_DIR=$(swig -swiglib)" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments