Skip to content

Commit 0dc4af1

Browse files
committed
Source .bashrc file
1 parent ba3b10a commit 0dc4af1

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/windows_test_npm_install.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ jobs:
177177
# Print debug info:
178178
- name: 'Print debug info'
179179
run: |
180+
source $HOME/.bashrc
180181
echo 'PATH:'
181182
echo $PATH
182183
echo ''
@@ -204,6 +205,7 @@ jobs:
204205
# Update the npm client (older clients cannot handle scoped modules):
205206
- name: 'Update npm'
206207
run: |
208+
source $HOME/.bashrc
207209
npm install -g npm@"${{ matrix.NPM_VERSION }}"
208210
npm --version
209211
timeout-minutes: 5
@@ -218,12 +220,15 @@ jobs:
218220
# [1]: https://github.com/felixrieseberg/windows-build-tools
219221
# [2]: https://github.com/nodejs/node-gyp#installation
220222
- name: 'Install Windows build tools'
221-
run: npm install --global --production windows-build-tools
223+
run: |
224+
source $HOME/.bashrc
225+
npm install --global --production windows-build-tools
222226
timeout-minutes: 5
223227

224228
# Configure npm:
225229
- name: 'Configure npm'
226230
run: |
231+
source $HOME/.bashrc
227232
npm config set python "$USERPROFILE/.windows-build-tools/python38"
228233
npm config set msvs_version 2017
229234
timeout-minutes: 2
@@ -245,6 +250,7 @@ jobs:
245250
# Run the build task:
246251
- name: 'Run build task'
247252
run: |
253+
source $HOME/.bashrc
248254
cd $GITHUB_WORKSPACE
249255
chmod +x ./tools/ci/github/script
250256
"./tools/ci/github/script" ${{ matrix.BUILD_TASK }} || "./tools/ci/github/script" ${{ matrix.BUILD_TASK }}
@@ -254,6 +260,7 @@ jobs:
254260
- name: 'View log file'
255261
if: failure()
256262
run: |
263+
source $HOME/.bashrc
257264
cd $GITHUB_WORKSPACE
258265
chmod +x ./tools/ci/github/on_failure
259266
"./tools/ci/github/on_failure" ${{ matrix.BUILD_TASK }}

0 commit comments

Comments
 (0)