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

Support Windows in Hermes scripts #2474

Open
leotm opened this issue Sep 30, 2024 · 1 comment
Open

Support Windows in Hermes scripts #2474

leotm opened this issue Sep 30, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@leotm
Copy link
Contributor

leotm commented Sep 30, 2024

What is the Problem Being Solved?

Windows compatibility

introduces a couple scripts which run fine in CI (ubuntu-latest) and locally (macOS), but may not on Windows

"build:hermes": "SES_BUILD_TYPE=hermes node scripts/bundle.js",

runs on my Win11 machine #2334 (comment) but may not for others

"test:hermes": "./scripts/hermes.sh",

doesn't run on Windows #2334 (comment)

it could be a good idea to support Windows contributors running these locally
including those setup to run React Native on Windows

Description of the Design

1 build:hermes util.parseArgs #2334 (comment)

2 test:hermes unsure how to run this on Windows, @boneskull may have an idea

Security Considerations

Scaling Considerations

Test Plan

consider running windows-latest in CI (Windows Server 2022)

Compatibility Considerations

Upgrade Considerations

@leotm leotm added the enhancement New feature or request label Sep 30, 2024
@boneskull
Copy link
Contributor

@leotm here's an example of including windows in a build matrix:

jobs:
  build:
    name: Node.js v${{ matrix.node_version }} / ${{ matrix.os }}
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node_version: [18, 20]
        os: [ubuntu-latest, windows-latest]
    steps:
      - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
      - name: Use Node.js ${{ matrix.node_version }}
        uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
        with:
          node-version: ${{ matrix.node_version }}

The Windows job(s) will be running under pwsh, which will quickly surface portability issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants