Skip to content

support windows, add basic test on {linux,macos,windows}#4

Merged
imjasonh merged 5 commits intochainguard-dev:mainfrom
imjasonh:windows
Jun 10, 2024
Merged

support windows, add basic test on {linux,macos,windows}#4
imjasonh merged 5 commits intochainguard-dev:mainfrom
imjasonh:windows

Conversation

@imjasonh
Copy link
Contributor

No description provided.

@imjasonh imjasonh marked this pull request as ready for review June 10, 2024 16:24
imjasonh added 4 commits June 10, 2024 12:52
Signed-off-by: Jason Hall <[email protected]>
Signed-off-by: Jason Hall <[email protected]>
Signed-off-by: Jason Hall <[email protected]>
@imjasonh imjasonh changed the title support windows, add basic test support windows, add basic test on {linux,macos,windows} Jun 10, 2024
@imjasonh imjasonh requested a review from cmdpdx June 10, 2024 17:15
fi
echo "Downloading chainctl from ${url}"

curl -o ./chainctl -fsL "${url}"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Windows runners don't seem to have wget, but they have curl.

mv ./chainctl "${CHAINCTL_INSTALL_PATH}"
# Ensure install directory is on the PATH for future steps
echo "${CHAINCTL_INSTALL_PATH}" >> "${GITHUB_PATH}"
install -D --mode 0555 ./chainctl --target-directory "${CHAINCTL_INSTALL_PATH}"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Windows (and possibly macOS) runners don't have install, but it's just chmod && mv anyway

Copy link
Contributor

@cmdpdx cmdpdx left a comment

Choose a reason for hiding this comment

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

Nice!

@imjasonh imjasonh merged commit 5c395cf into chainguard-dev:main Jun 10, 2024
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.

2 participants