diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c8da2085a..78f1b3099 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,7 +11,7 @@ jobs: name: build strategy: matrix: - node: [20, 22] + node: [22] os: # https://github.com/actions/runner-images#available-images - name: darwin @@ -63,7 +63,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - node: [20, 22] + node: [22] steps: - uses: actions/checkout@v5 - uses: docker/setup-qemu-action@v3 @@ -85,7 +85,7 @@ jobs: runs-on: ubuntu-22.04-arm strategy: matrix: - node: [20, 22] + node: [22] steps: - uses: actions/checkout@v5 - name: build linux musl arm64 @@ -134,18 +134,12 @@ jobs: mkdir -p prebuilds/darwin-arm64 mkdir -p prebuilds/darwin-x64 find ${{ steps.download.outputs.download-path }} - # Copy Node 20 and 22 prebuilds for each platform - mv ${{ steps.download.outputs.download-path }}/prebuild-Linux-X64-node20/linux-x64/* ./prebuilds/linux-x64/ 2>/dev/null || true + # Copy prebuilds for each platform mv ${{ steps.download.outputs.download-path }}/prebuild-Linux-X64-node22/linux-x64/* ./prebuilds/linux-x64/ 2>/dev/null || true - mv ${{ steps.download.outputs.download-path }}/prebuild-Linux-ARM64-node20/linux-arm64/* ./prebuilds/linux-arm64/ 2>/dev/null || true mv ${{ steps.download.outputs.download-path }}/prebuild-Linux-ARM64-node22/linux-arm64/* ./prebuilds/linux-arm64/ 2>/dev/null || true - mv ${{ steps.download.outputs.download-path }}/prebuild-linux-musl-amd64-node20/linux-x64/* ./prebuilds/linux-x64/ 2>/dev/null || true mv ${{ steps.download.outputs.download-path }}/prebuild-linux-musl-amd64-node22/linux-x64/* ./prebuilds/linux-x64/ 2>/dev/null || true - mv ${{ steps.download.outputs.download-path }}/prebuild-linux-musl-arm64-node20/linux-arm64/* ./prebuilds/linux-arm64/ 2>/dev/null || true mv ${{ steps.download.outputs.download-path }}/prebuild-linux-musl-arm64-node22/linux-arm64/* ./prebuilds/linux-arm64/ 2>/dev/null || true - mv ${{ steps.download.outputs.download-path }}/prebuild-macOS-ARM64-node20/darwin-arm64/* ./prebuilds/darwin-arm64/ 2>/dev/null || true mv ${{ steps.download.outputs.download-path }}/prebuild-macOS-ARM64-node22/darwin-arm64/* ./prebuilds/darwin-arm64/ 2>/dev/null || true - mv ${{ steps.download.outputs.download-path }}/prebuild-macOS-X64-node20/darwin-x64/* ./prebuilds/darwin-x64/ 2>/dev/null || true mv ${{ steps.download.outputs.download-path }}/prebuild-macOS-X64-node22/darwin-x64/* ./prebuilds/darwin-x64/ 2>/dev/null || true find ./prebuilds - name: npm install diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6c227c9f9..918169601 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,7 +20,7 @@ jobs: container: ubuntu:22.04 strategy: matrix: - node-version: [20, 22] + node-version: [22] steps: - name: prerequisites run: | @@ -61,7 +61,7 @@ jobs: GYP_DEFINES: use_obsolete_asm=true strategy: matrix: - node-version: [20, 22] + node-version: [22] runner: ["macos-26", "macos-15-intel"] runs-on: ${{ matrix.runner }} steps: @@ -101,7 +101,7 @@ jobs: runs-on: ubuntu-22.04-arm strategy: matrix: - node-version: [20, 22] + node-version: [22] steps: - uses: actions/checkout@v5 with: diff --git a/.travis/deploy-docs.sh b/.travis/deploy-docs.sh deleted file mode 100755 index 50ee50b2b..000000000 --- a/.travis/deploy-docs.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env bash - - -# delete "nodegit.github.com" folder if it exists -rm -rf "nodegit.github.com" || exit 0; - -# clone "nodegit.github.com" repository -git clone "https://github.com/nodegit/nodegit.github.com.git" - -# change into "nodegit.github.com" folder -cd "nodegit.github.com" - -# install node dependencies -npm install - -# link "nodegit" folder -ln -s ../.. generate/nodegit - -# generate new docs -node generate - -# configure git user information -git config user.name "Travis CI" -git config user.email "noreply@travis-ci.org" - -# commit changes -git add . -git commit -m "Deploy to GitHub Pages - -see https://github.com/nodegit/nodegit.github.com/commit/${TRAVIS_COMMIT}" -git tag "${TRAVIS_COMMIT}" - -# push to the "nodegit.github.com" repository -git push --quiet "https://${GH_TOKEN}@github.com/nodegit/nodegit.github.com.git" master "${TRAVIS_COMMIT}" > /dev/null 2>&1 diff --git a/README.md b/README.md index 4354c2f83..27c301535 100644 --- a/README.md +++ b/README.md @@ -4,24 +4,26 @@ [![Actions Status](https://github.com/nodegit/nodegit/workflows/Testing/badge.svg)](https://github.com/nodegit/nodegit/actions) -**Stable (libgit2@v0.28.3): 0.28.3** +## What is this fork? -## Have a problem? Come chat with us! +This fork contains a prebuilt version of nodegit that is compatible with **node +22.x** and the following platforms/arch/libc type: -Visit [slack.libgit2.org](http://slack.libgit2.org/) to sign up, then join us in #nodegit. +- **darwin/arm64/glibc** +- **darwin/amd64/glibc** +- **linux/amd64/glibc** +- **linux/arm64/glibc** +- **linux/amd64/musl** +- **linux/arm64/musl** -## Maintained by +This means that if you are using node 22 and one of those platforms, you can +have a much faster install because you won't need to build nodegit from source. +It also means that you will have a slightly larger file in your node_modules +folder. -Readme - -### Alumni Maintainers +## Fork Maintained by -Tim Branyen [@tbranyen](http://twitter.com/tbranyen), -John Haley [@johnhaley81](http://twitter.com/johnhaley81), -Max Korp [@maxkorp](http://twitter.com/MaximilianoKorp), -Steve Smith [@orderedlist](https://twitter.com/orderedlist), -Michael Robinson [@codeofinterest](http://twitter.com/codeofinterest), and -Nick Kallen [@nk](http://twitter.com/nk) +Readme ## API Documentation. @@ -36,10 +38,6 @@ dependencies. npm install nodegit ``` -If you receive errors about libstdc++, which are commonly experienced when -building on Travis-CI, you can fix this by upgrading to the latest -libstdc++-4.9. - In Ubuntu: ```sh @@ -48,17 +46,6 @@ sudo apt-get update sudo apt-get install libstdc++-4.9-dev ``` -In Travis: - -```yaml -addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-4.9-dev -``` - In CircleCI: ```yaml diff --git a/package-lock.json b/package-lock.json index 137285bca..b6ba4fb01 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,7 +31,7 @@ "walk": "^2.3.9" }, "engines": { - "node": ">= 20" + "node": "22.x" } }, "node_modules/@axosoft/nan": { diff --git a/package.json b/package.json index 82945aafb..f817abaac 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "lib": "./lib" }, "engines": { - "node": ">= 20" + "node": "22.x" }, "dependencies": { "@axosoft/nan": "^2.22.0-gk.1",