-
Notifications
You must be signed in to change notification settings - Fork 12k
ci: re-enable windows CI [main] #30907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,23 +18,25 @@ runs: | |
steps: | ||
- name: Initialize WSL | ||
id: init_wsl | ||
uses: angular/dev-infra/github-actions/setup-wsl@7f2c99469dcf64fd466abf6cb53bede791d7599d | ||
uses: angular/dev-infra/github-actions/setup-wsl@66a623888d17a9f2f9f4558fad5b07e78dde525e | ||
with: | ||
wsl_firewall_interface: 'vEthernet (WSL (Hyper-V firewall))' | ||
|
||
- name: Installing pnpm (in WSL) | ||
run: npm install -g pnpm@9 | ||
shell: wsl-bash {0} | ||
|
||
- name: Install node modules in WSL (re-using from previous install/cache restore) | ||
run: | | ||
export NVM_DIR="$HOME/.nvm" | ||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting. Is this not installed from the bashrc? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried placing them in the rc Not sure what is wrong, I spent too much time on that and I gave up |
||
|
||
cd ${{steps.init_wsl.outputs.repo_path}} | ||
pnpm install --frozen-lockfile | ||
shell: wsl-bash {0} | ||
|
||
- name: Build test binary for Windows (inside WSL) | ||
shell: wsl-bash {0} | ||
run: | | ||
export NVM_DIR="$HOME/.nvm" | ||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | ||
|
||
cd ${{steps.init_wsl.outputs.repo_path}} | ||
pnpm bazel \ | ||
build --config=e2e //tests/legacy-cli:${{inputs.test_target_name}} --platforms=tools:windows_x64 | ||
|
@@ -54,6 +56,9 @@ runs: | |
- name: Convert symlinks for Windows host | ||
shell: wsl-bash {0} | ||
run: | | ||
export NVM_DIR="$HOME/.nvm" | ||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | ||
|
||
cd ${{steps.init_wsl.outputs.repo_path}} | ||
|
||
runfiles_dir="/mnt/c/test/dist/bin/tests/legacy-cli/${{inputs.test_target_name}}_/${{inputs.test_target_name}}.bat.runfiles" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed to be in every step otherwise pnpm and node are not loaded.