From c72d057508d492ef8c32ebfc0ec3c4b690cb6423 Mon Sep 17 00:00:00 2001 From: Chengzhong Wu Date: Thu, 9 May 2024 11:10:48 +0100 Subject: [PATCH] ci: add node-integration --- .github/workflows/node.yml | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/node.yml diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml new file mode 100644 index 00000000..16ed7eda --- /dev/null +++ b/.github/workflows/node.yml @@ -0,0 +1,44 @@ +name: node integration +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: + +jobs: + integration: + strategy: + fail-fast: false + matrix: + os: [macos-latest, macos-14, ubuntu-latest] + python: ["3.8", "3.10", "3.12"] + exclude: + - os: macos-14 + python: "3.8" + + 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 + - name: Replace gyp in node + shell: bash + run: | + rm -rf node/tools/gyp + cp -r gyp-next node/tools/gyp + - name: Run configure + shell: bash + run: | + cd node + ./configure