Skip to content

CI: fix macOS and Windows builds#416

Merged
svlandeg merged 2 commits into
explosion:masterfrom
danieldk:bugfix/ci-errors
Apr 25, 2024
Merged

CI: fix macOS and Windows builds#416
svlandeg merged 2 commits into
explosion:masterfrom
danieldk:bugfix/ci-errors

Conversation

@danieldk

@danieldk danieldk commented Apr 25, 2024

Copy link
Copy Markdown
Contributor

Description

There were two unrelated issues in CI builds fixed by this PR.

  • macOS: macos-latest is now ARM64, but we were forcefully setting x86. x86 can run on ARM64 through Rosetta, but a library was missing. Always build for the native platform instead.
  • Windows: PyTorch has an encoding issue that surfaces on Windows causing MyPy to fail: Certain .pyi files are not encoded as UTF-8 in Windows pytorch/pytorch#124897 So, install PyTorch 2.2.2 on Windows until this is resolved.

Types of change

Bug fixes.

Checklist

  • I confirm that I have the right to submit this contribution under the project's MIT license.
  • I ran the tests, and all new and existing tests passed.
  • My changes don't require a change to the documentation, or if they do, I've added all required information.

Constraints:

- `macos-latest` is now ARM64.
- Python 3.11 is the first macOS ARM release available in the action.

So, we use macos-13 for older versions and stop unconditionally setting
the architecture to x86, so that `macos-latest` uses ARM64 builds.
@danieldk danieldk changed the title CI: macOS builders are ARM now, remove explitit x86 CI: fix macOS and Windows builds Apr 25, 2024
@danieldk danieldk added the bug Something isn't working label Apr 25, 2024
@danieldk
danieldk marked this pull request as ready for review April 25, 2024 13:01
@svlandeg
svlandeg merged commit ed40a98 into explosion:master Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants