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

MacOS: Install ispc by downloading **versioned** release from GitHub #31

Merged

Conversation

MarijnS95
Copy link
Contributor

@MarijnS95 MarijnS95 commented Dec 13, 2023

brew keeps horribly breaking, and a brew install ispc after a brew upgrade takes an insulting 13 minutes to also update all kinds of unrelated "formulae" that are irrelevant to the request to simply upgrade ispc (and direct dependencies). And it doesn't even allow us to pin the version to match the Linux and Windows jobs.

This is simply solved by mimicking the Linux/Windows install process, by downloading the latest versioned ispc binary from GitHub, extracting it, and passing the path to GITHUB_PATH.

Also clean up some inconsistencies in env var resolving, to all resolve them inside the shell script (via $var on UNIX and $env:var on Windows) as ${{ env.var }} doesn't work in every context (i.e. to get to GITHUB_PATH).

`brew` keeps horribly breaking, and a `brew install ispc` after a
`brew upgrade` takes an insulting 13 minutes to also update all kinds
of unrelated "formulae" that are irrelevant to the request to simply
upgrade `ispc` (and direct dependencies).  And it doesn't even allow us
to pin the version to match the Linux and Windows jobs.

This is simply solved by mimicking the Linux/Windows install process, by
downloading the latest versioned `ispc` binary from GitHub, extracting
it, and passing the path to `GITHUB_PATH`.

Also clean up some inconsistencies in env var resolving, to all resolve
them inside the shell script (via `$var` on UNIX and `$env:var` on
Windows) as `${{ env.var }}` doesn't work in every context (i.e. to get
to `GITHUB_PATH`).
@MarijnS95 MarijnS95 force-pushed the mac-download-instead-of-brew branch from f861e90 to 80a00af Compare December 13, 2023 09:18
@Twinklebear Twinklebear merged commit 861af9a into Twinklebear:master Dec 16, 2023
1 check passed
@Twinklebear
Copy link
Owner

Downloading it directly on macOS instead of brew is great, thanks @MarijnS95 !

@MarijnS95 MarijnS95 deleted the mac-download-instead-of-brew branch December 17, 2023 00:27
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