|
80 | 80 | - uses: 'actions/setup-node@v3'
|
81 | 81 | with:
|
82 | 82 | node-version: '16'
|
| 83 | + - name: 'install udev for usb-detection' |
| 84 | + run: sudo apt-get update && sudo apt-get install libudev-dev |
| 85 | + - name: 'cache yarn cache' |
| 86 | + uses: actions/cache@v3 |
| 87 | + with: |
| 88 | + path: | |
| 89 | + ${{ github.workspace }}/.yarn-cache |
| 90 | + ${{ github.workspace }}/.npm-cache |
| 91 | + key: js-${{ secrets.GH_CACHE_VERSION }}-${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} |
| 92 | + restore-keys: | |
| 93 | + js-${{ secrets.GH_CACHE_VERSION }}-${{ runner.os }}-yarn- |
| 94 | + - name: 'setup-js' |
| 95 | + run: | |
| 96 | + npm config set cache ./.npm-cache |
| 97 | + yarn config set cache-folder ./.yarn-cache |
| 98 | + yarn config set network-timeout 60000 |
| 99 | + yarn |
83 | 100 | - name: 'build components'
|
84 | 101 | run: make -C components
|
85 | 102 | - name: 'upload github artifact'
|
@@ -124,6 +141,23 @@ jobs:
|
124 | 141 | - uses: 'actions/setup-node@v3'
|
125 | 142 | with:
|
126 | 143 | node-version: '16'
|
| 144 | + - name: 'install udev for usb-detection' |
| 145 | + run: sudo apt-get update && sudo apt-get install libudev-dev |
| 146 | + - name: 'cache yarn cache' |
| 147 | + uses: actions/cache@v3 |
| 148 | + with: |
| 149 | + path: | |
| 150 | + ${{ github.workspace }}/.yarn-cache |
| 151 | + ${{ github.workspace }}/.npm-cache |
| 152 | + key: js-${{ secrets.GH_CACHE_VERSION }}-${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} |
| 153 | + restore-keys: | |
| 154 | + js-${{ secrets.GH_CACHE_VERSION }}-${{ runner.os }}-yarn- |
| 155 | + - name: 'setup-js' |
| 156 | + run: | |
| 157 | + npm config set cache ./.npm-cache |
| 158 | + yarn config set cache-folder ./.yarn-cache |
| 159 | + yarn config set network-timeout 60000 |
| 160 | + yarn |
127 | 161 | - name: 'set complex environment variables'
|
128 | 162 | id: 'set-vars'
|
129 | 163 | uses: actions/github-script@v6
|
@@ -161,6 +195,23 @@ jobs:
|
161 | 195 | with:
|
162 | 196 | node-version: '16'
|
163 | 197 | registry-url: 'https://registry.npmjs.org'
|
| 198 | + - name: 'install udev for usb-detection' |
| 199 | + run: sudo apt-get update && sudo apt-get install libudev-dev |
| 200 | + - name: 'cache yarn cache' |
| 201 | + uses: actions/cache@v3 |
| 202 | + with: |
| 203 | + path: | |
| 204 | + ${{ github.workspace }}/.yarn-cache |
| 205 | + ${{ github.workspace }}/.npm-cache |
| 206 | + key: js-${{ secrets.GH_CACHE_VERSION }}-${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} |
| 207 | + restore-keys: | |
| 208 | + js-${{ secrets.GH_CACHE_VERSION }}-${{ runner.os }}-yarn- |
| 209 | + - name: 'setup-js' |
| 210 | + run: | |
| 211 | + npm config set cache ./.npm-cache |
| 212 | + yarn config set cache-folder ./.yarn-cache |
| 213 | + yarn config set network-timeout 60000 |
| 214 | + yarn |
164 | 215 | - name: 'build library'
|
165 | 216 | run: |
|
166 | 217 | make -C components lib
|
|
0 commit comments