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

Add Windows Server 2022 with Visual Studio 2022 #4775

Merged
merged 7 commits into from
Aug 26, 2021

Conversation

@znz znz force-pushed the github-actions-windows-2022 branch 5 times, most recently from 9dcdb6c to 3747c6a Compare August 25, 2021 05:42
@znz znz force-pushed the github-actions-windows-2022 branch 2 times, most recently from acb9cb0 to 890114b Compare August 25, 2021 07:04
Comment on lines +27 to +29
echo VCVARS="C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Auxiliary\Build\vcvars64.bat" >> %GITHUB_ENV%
) ELSE IF ${{ matrix.os }}==windows-2019 (
echo VCVARS="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" >> %GITHUB_ENV%
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes %VCVARS% to include double quotes.
It feels weird a little.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PATH without double quotes causes an error.
So I add double quotes to echo again, and remove from call.

https://github.com/ruby/ruby/runs/3418598073?check_suite_focus=true#step:4:11

Run IF windows-2022==windows-2022 (
  IF windows-2022==windows-2022 (
    echo VCVARS=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Auxiliary\Build\vcvars64.bat >> %GITHUB_ENV%
  ) ELSE IF windows-2022==windows-2019 (
    echo VCVARS=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat >> %GITHUB_ENV%
  )
  shell: C:\Windows\system32\cmd.EXE /D /E:ON /V:OFF /S /C "CALL "{0}""
  env:
    GITPULLOPTIONS: --no-tags origin refs/pull/4775/merge
    PATCH: C:\msys64\usr\bin\patch.exe
\Microsoft was unexpected at this time.
Error: Process completed with exit code 255.

@znz znz force-pushed the github-actions-windows-2022 branch from 402a314 to 8644262 Compare August 25, 2021 07:48
@znz znz force-pushed the github-actions-windows-2022 branch from 2b43c2a to 019e476 Compare August 26, 2021 09:56
@znz znz merged commit ef10e8a into ruby:master Aug 26, 2021
@znz znz deleted the github-actions-windows-2022 branch August 26, 2021 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants