Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
26 changes: 14 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
name: CI

on: [push]
on:
push:
pull_request:

jobs:
Build:
runs-on: ubuntu-latest
env:
CC: clang
CXX: clang++
npm_config_clang: 1
CC: clang
CXX: clang++
npm_config_clang: 1
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
name: Install Node
with:
node-version: 16
- name: Install
node-version: 20
- name: Install module
run: |
npm run prepare
npm install
- name: Test
run: |
npm run lint
npm run test
- name: Run tests
run: npm test
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- run: npm run prepare
- run: npm ci
- run: npm test

Expand All @@ -32,5 +33,6 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: https://registry.npmjs.org/
- run: npm run prepare
- run: npm ci
- run: npm publish --access public
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "deps/libgit2"]
path = deps/libgit2
url = https://github.com/libgit2/libgit2.git
ignore = untracked
13 changes: 9 additions & 4 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@
'dependencies': [
'libgit2'
],
'include_dirs': ['<!(node -e "require(\'nan\')")'],
'include_dirs': [
"<!(node -p \"require('node-addon-api').include_dir\")",
],
'defines': [
"NAPI_DISABLE_CPP_EXCEPTIONS"
],
'sources': [
'src/repository.cc'
'src/binding.cc'
],
'conditions': [
['OS=="win"', {
Expand All @@ -25,8 +30,8 @@
'-Wno-missing-field-initializers',
],
'cflags_cc!': [
'-fno-delete-null-pointer-checks', # clang-3.4 doesn't understand
# this flag and fails.
# clang-3.4 doesn't understand this flag and fails.
'-fno-delete-null-pointer-checks',
],
'xcode_settings': {
'WARNING_CFLAGS': [
Expand Down
1 change: 1 addition & 0 deletions deps/libgit2
Submodule libgit2 added at fef847
24 changes: 0 additions & 24 deletions deps/libgit2/.HEADER

This file was deleted.

15 changes: 0 additions & 15 deletions deps/libgit2/.editorconfig

This file was deleted.

35 changes: 0 additions & 35 deletions deps/libgit2/.gitignore

This file was deleted.

22 changes: 0 additions & 22 deletions deps/libgit2/.mailmap

This file was deleted.

78 changes: 0 additions & 78 deletions deps/libgit2/AUTHORS

This file was deleted.

Loading