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

Windows CI for Slither #1137

Merged
merged 21 commits into from
Apr 1, 2022
Merged

Windows CI for Slither #1137

merged 21 commits into from
Apr 1, 2022

Conversation

elopez
Copy link
Member

@elopez elopez commented Mar 21, 2022

This PR introduces Windows into Slither's CI workflows. In the process of doing so, it also fixes several issues that affect execution of Slither and/or tests in the Windows OS.

The hardcoded, manually-installed version is out of date. This updates
the workflow to install directly from pip now that it is available there.
This version introduces Windows support.
This enables runs on windows-2022 and updates solc-select to support
running on Windows.
This enables runs on windows-2022 and updates solc-select to support
running on Windows.
Disable fail-fast so failures in one platform do not hide failures
in the other OS.
Backslashes are escaped in the string representation, so we need
to double them before replacing. Also change generic path to a constant
string to avoid it being converted to "\GENERIC_PATH" in Windows and
getting an invalid escape error from the JSON decoder later on.
If autocrlf is enabled on Windows, it will rewrite solc code with
CRLF file endings and break tests that depend on byte offsets in
the code files.
This enables runs on windows-2022 and updates solc-select to support
running on Windows. Some tests with Linux requirements are excluded.
v1 does not install Python correctly on Windows. While at it, update
all instances to v3.
@elopez elopez changed the base branch from master to dev March 21, 2022 15:30
@lgtm-com
Copy link

lgtm-com bot commented Mar 21, 2022

This pull request introduces 1 alert when merging 7097bc1 into 81daa56 - view on LGTM.com

new alerts:

  • 1 for Unused import

@elopez elopez force-pushed the windows-ci branch 10 times, most recently from cf86e04 to 7740268 Compare March 21, 2022 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants