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

ci: add nodejs integration on macos/linux #255

Merged
merged 3 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions .github/workflows/nodejs-windows.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Node.js integration
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
integration:
strategy:
fail-fast: false
matrix:
os: [macos-13, macos-latest, ubuntu-latest, windows-latest]
python: ["3.8", "3.10", "3.12"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Test the beta? https://www.python.org/download/pre-releases/

Suggested change
python: ["3.8", "3.10", "3.12"]
python: ["3.8", "3.10", "3.12", "3.13"]

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes. Please add it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Submitted nodejs/node#53190


runs-on: ${{ matrix.os }}
steps:
- name: Clone gyp-next
uses: actions/checkout@v4
with:
path: gyp-next
- name: Clone nodejs/node
uses: actions/checkout@v4
with:
repository: nodejs/node
path: node
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
allow-prereleases: true

# macOS and Linux
- name: Replace gyp in Node.js
if: runner.os != 'Windows'
cclauss marked this conversation as resolved.
Show resolved Hide resolved
shell: bash
run: |
rm -rf node/tools/gyp
cp -r gyp-next node/tools/gyp
- name: Run configure
if: runner.os != 'Windows'
shell: bash
cclauss marked this conversation as resolved.
Show resolved Hide resolved
run: |
cd node
./configure

# Windows
- name: Install deps
if: runner.os == 'Windows'
run: choco install nasm
- name: Replace gyp in Node.js
if: runner.os == 'Windows'
run: |
rm -Recurse node/tools/gyp
cp -Recurse gyp-next node/tools/gyp
cclauss marked this conversation as resolved.
Show resolved Hide resolved
- name: Run configure
if: runner.os == 'Windows'
run: |
cd node
./vcbuild.bat nobuild
Loading