@@ -22,10 +22,11 @@ jobs:
2222 needs : [diff_check]
2323 if : ${{ needs.diff_check.outputs.skip_ci != 'true' }}
2424 steps :
25- - uses : actions/checkout@v4
25+ - uses : actions/checkout@v5
2626 - run : npm i -g corepack
27- - uses : actions/setup-node@v4
27+ - uses : actions/setup-node@v5
2828 with :
29+ package-manager-cache : false
2930 node-version : 18
3031 cache : ' yarn'
3132 cache-dependency-path : yarn.lock
@@ -40,15 +41,43 @@ jobs:
4041 needs : [diff_check]
4142 if : ${{ needs.diff_check.outputs.skip_ci != 'true' }}
4243 steps :
43- - uses : actions/checkout@v4
44+ - uses : actions/checkout@v5
4445 - run : npm i -g corepack
45- - uses : actions/setup-node@v4
46+ - uses : actions/setup-node@v5
4647 with :
48+ package-manager-cache : false
4749 node-version : 18
4850 cache : ' yarn'
4951 cache-dependency-path : yarn.lock
5052 - name : Install Dependencies
5153 run : yarn install
54+
55+ # Default of ubuntu and apt packages are too old compared to macos packages.
56+ # This is required for using a newer version of clang-format.
57+ - name : Setup clang-format V20
58+ run : |
59+ sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" 20
60+ sudo apt-get install -y clang-20 clang-format-20 lld-20 lldb-20
61+
62+ - name : Set clang-format V20 as default
63+ run : |
64+ sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-20 200
65+ sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-20 200
66+ sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-20 200
67+ clang --version
68+ clang-format --version
69+
70+ - name : Install Swiftly
71+ run : |
72+ SWIFTLY_FILE="swiftly-$(uname -m).tar.gz"
73+ curl -sL https://download.swift.org/swiftly/linux/swiftly-x86_64.tar.gz -o $SWIFTLY_FILE
74+ tar zxf $SWIFTLY_FILE
75+
76+ ./swiftly init --quiet-shell-followup
77+ . "${SWIFTLY_HOME_DIR:-$HOME/.local/share/swiftly}/env.sh"
78+ hash -r
79+ sudo apt-get -y install libcurl4-openssl-dev
80+
5281 - name : Lint
5382 run : yarn lint
5483
@@ -58,10 +87,11 @@ jobs:
5887 needs : [diff_check]
5988 if : ${{ needs.diff_check.outputs.skip_ci != 'true' }}
6089 steps :
61- - uses : actions/checkout@v4
90+ - uses : actions/checkout@v5
6291 - run : npm i -g corepack
63- - uses : actions/setup-node@v4
92+ - uses : actions/setup-node@v5
6493 with :
94+ package-manager-cache : false
6595 node-version : 18
6696 cache : ' yarn'
6797 cache-dependency-path : yarn.lock
@@ -81,10 +111,11 @@ jobs:
81111 needs : [diff_check]
82112 if : ${{ needs.diff_check.outputs.skip_ci != 'true' }}
83113 steps :
84- - uses : actions/checkout@v4
114+ - uses : actions/checkout@v5
85115 - run : npm i -g corepack
86- - uses : actions/setup-node@v4
116+ - uses : actions/setup-node@v5
87117 with :
118+ package-manager-cache : false
88119 node-version : 18
89120 cache : ' yarn'
90121 cache-dependency-path : yarn.lock
@@ -124,22 +155,23 @@ jobs:
124155 env :
125156 YARN_ENABLE_IMMUTABLE_INSTALLS : false
126157 steps :
127- - uses : actions/checkout@v4
158+ - uses : actions/checkout@v5
128159 - run : npm i -g corepack
129- - uses : actions/setup-node@v4
160+ - uses : actions/setup-node@v5
130161 with :
162+ package-manager-cache : false
131163 node-version : 18
132164 cache : ' yarn'
133165 cache-dependency-path : yarn.lock
134166 - name : Install Dependencies
135167 run : yarn install
136168 - name : Download dist
137- uses : actions/download-artifact@v4
169+ uses : actions/download-artifact@v5
138170 with :
139171 name : dist
140172 path : packages/core/dist
141173 - name : Download ts3.8
142- uses : actions/download-artifact@v4
174+ uses : actions/download-artifact@v5
143175 with :
144176 name : ts3.8
145177 path : packages/core/ts3.8
@@ -154,22 +186,23 @@ jobs:
154186 needs : [job_build, diff_check]
155187 if : ${{ needs.diff_check.outputs.skip_ci != 'true' }}
156188 steps :
157- - uses : actions/checkout@v4
189+ - uses : actions/checkout@v5
158190 - run : npm i -g corepack
159- - uses : actions/setup-node@v4
191+ - uses : actions/setup-node@v5
160192 with :
193+ package-manager-cache : false
161194 node-version : 18
162195 cache : ' yarn'
163196 cache-dependency-path : yarn.lock
164197 - name : Install Dependencies
165198 run : yarn install
166199 - name : Download dist
167- uses : actions/download-artifact@v4
200+ uses : actions/download-artifact@v5
168201 with :
169202 name : dist
170203 path : packages/core/dist
171204 - name : Download Expo Plugin
172- uses : actions/download-artifact@v4
205+ uses : actions/download-artifact@v5
173206 with :
174207 name : expo-plugin
175208 path : packages/core/plugin/build
@@ -188,10 +221,11 @@ jobs:
188221 platform : ['ios', 'android']
189222 dev : [true, false]
190223 steps :
191- - uses : actions/checkout@v4
224+ - uses : actions/checkout@v5
192225 - run : npm i -g corepack
193- - uses : actions/setup-node@v4
226+ - uses : actions/setup-node@v5
194227 with :
228+ package-manager-cache : false
195229 node-version : 18
196230 cache : ' yarn'
197231 cache-dependency-path : yarn.lock
0 commit comments