Skip to content
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

GitHub windows 2022 #248

Merged
merged 3 commits into from
Nov 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows.src/main-jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ wslSteps.push({
'wsl bash -c "sudo echo \\"${WSLUSER} ALL=(ALL) NOPASSWD:ALL\\" >> /etc/sudoers"',
'# Use wsl.conf to fix error: chmod on .git/config.lock failed: Operation not permitted',
'# See https://gist.github.com/shakahl/8b6c969768b3a54506c0fc4905d729a0',
'wsl bash -c "sudo cp priv/wsl.conf /etc/wsl.conf && sudo chmod 0644 /etc/wsl.conf"'
'wsl bash -c "sudo cp priv/wsl.conf /etc/wsl.conf && sudo chmod 0644 /etc/wsl.conf"',
// Need to shutdown wsl, in order to apply the wsl.conf config
// https://github.com/MicrosoftDocs/WSL/blob/master/WSL/wsl-config.md
'wsl --shutdown'
], '\n')
});

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows.src/main-matrix.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ let matrixOs = {
'macos-11'
],
windows: [
'windows-2019'
'windows-2019',
'windows-2022'
]
};

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ jobs:
matrix:
os:
- windows-2019
- windows-2022
yp_ci_brew_install:
- minimal
name: 'main-${{ matrix.yp_ci_brew_install }}-${{ matrix.os }}'
Expand Down Expand Up @@ -584,6 +585,8 @@ jobs:
# See https://gist.github.com/shakahl/8b6c969768b3a54506c0fc4905d729a0

wsl bash -c "sudo cp priv/wsl.conf /etc/wsl.conf && sudo chmod 0644 /etc/wsl.conf"

wsl --shutdown
- shell: bash
run: bin/wsl-bash -c "./.ci.sh before_install"
- shell: bash
Expand Down
1 change: 1 addition & 0 deletions priv/wsl.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# see https://devblogs.microsoft.com/commandline/automatically-configuring-wsl/
# see https://github.com/MicrosoftDocs/WSL/blob/master/WSL/wsl-config.md

# DEFAULTS
# [automount]
Expand Down