This repository was archived by the owner on Oct 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-27
lines changed Expand file tree Collapse file tree 2 files changed +7
-27
lines changed Original file line number Diff line number Diff line change 6565 run : $ATS_SUDO $ATS_APT_UPDATE && $ATS_SUDO $ATS_APT_UPGRADE && $ATS_SUDO $ATS_APT_INSTALL $ATS_APT_DEPS
6666 - name : Install Node packages
6767 run : |
68- for pck in $(find grammars -maxdepth 2 -name "package.json"); do
69- cd $(dirname $pck)
70- npm install
71- cd -
72- done
68+ cd grammars/cpp && npm install && cd -
7369 - name : Restore cache
7470 uses : actions/cache@v4
7571 with :
@@ -119,11 +115,7 @@ jobs:
119115 run : $ATS_SUDO $ATS_APT_UPDATE && $ATS_SUDO $ATS_APT_UPGRADE && $ATS_SUDO $ATS_APT_INSTALL $ATS_APT_DEPS
120116 - name : Install Node packages
121117 run : |
122- for pck in $(find grammars -maxdepth 2 -name "package.json"); do
123- cd $(dirname $pck)
124- npm install
125- cd -
126- done
118+ cd grammars/cpp && npm install && cd -
127119 - name : Restore cache
128120 uses : actions/cache@v4
129121 with :
@@ -171,11 +163,7 @@ jobs:
171163 run : $ATS_SUDO $ATS_APT_UPDATE && $ATS_SUDO $ATS_APT_UPGRADE && $ATS_SUDO $ATS_APT_INSTALL $ATS_APT_DEPS
172164 - name : Install Node packages
173165 run : |
174- for pck in $(find grammars -maxdepth 2 -name "package.json"); do
175- cd $(dirname $pck)
176- npm install
177- cd -
178- done
166+ cd grammars/cpp && npm install && cd -
179167 - name : Restore cache
180168 uses : actions/cache@v4
181169 with :
@@ -233,11 +221,7 @@ jobs:
233221 run : $ATS_SUDO $ATS_APT_UPDATE && $ATS_SUDO $ATS_APT_UPGRADE && $ATS_SUDO $ATS_APT_INSTALL $ATS_APT_DEPS
234222 - name : Install Node packages
235223 run : |
236- for pck in $(find grammars -maxdepth 2 -name "package.json"); do
237- cd $(dirname $pck)
238- npm install
239- cd -
240- done
224+ cd grammars/cpp && npm install && cd -
241225 - name : Restore cache
242226 uses : actions/cache@v4
243227 with :
Original file line number Diff line number Diff line change @@ -75,16 +75,12 @@ git clone --recurse-submodules https://github.com/AndroidIDEOfficial/android-tre
7575
7676### Install grammar dependencies
7777
78- You might need to install the Node packages required by the grammars. To do so, you may do
79- something like the following :
78+ You might need to install the Node packages required by the grammars. For example, the ` cpp ` grammar
79+ requires you to install the packages :
8080
8181``` bash
8282# from the root directory of this project
83- for pck in $( find grammars -maxdepth 2 -name " package.json" -type f) ; do
84- cd $( dirname $pck )
85- npm install
86- cd -
87- done
83+ cd grammars/cpp && npm install && cd -
8884```
8985
9086### Build
You can’t perform that action at this time.
0 commit comments