Skip to content

Commit e267ff8

Browse files
authored
fix windows workflow; include entire libgit2 source (#279)
1 parent 70e5c3b commit e267ff8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+27573
-1
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,22 @@ jobs:
162162
uses: actions/checkout@v3
163163
with:
164164
path: gitly
165+
- name: Checkout libgit2
166+
uses: actions/checkout@v3
167+
with:
168+
repository: libgit2/libgit2
169+
path: thirdparty\libgit2
170+
- name: build libgit2
171+
run: |
172+
mkdir thirdparty\libgit2\build
173+
cd thirdparty\libgit2\build
174+
cmake ..
175+
cmake --build .
176+
cp .\Debug\git2.dll D:\a\gitly\gitly\
177+
cp .\Debug\git2.exe D:\a\gitly\gitly
178+
dir
179+
cd ..\..\..
180+
dir
165181
- name: Install SQLite
166182
run: |
167183
.github\workflows\windows-install-sqlite.bat
@@ -180,7 +196,9 @@ jobs:
180196
run: |
181197
./make.bat -gcc
182198
- name: Compile gitly
183-
run: .\v.exe -cc gcc gitly
199+
run: |
200+
dir
201+
.\v.exe -cflags "-L." -cflags "-Igitly/libgit2/include" -cflags "-Igitly/libgit2" -cc gcc gitly
184202
185203
ubuntu-tcc:
186204
runs-on: ubuntu-latest
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
3+
curl -L https://raw.githubusercontent.com/libgit2/libgit2/refs/heads/main/include/git2/types.h -o types.h

git/git2.h

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/*
2+
* Copyright (C) the libgit2 contributors. All rights reserved.
3+
*
4+
* This file is part of libgit2, distributed under the GNU GPL v2 with
5+
* a Linking Exception. For full terms see the included COPYING file.
6+
*/
7+
8+
#ifndef INCLUDE_git_git_h__
9+
#define INCLUDE_git_git_h__
10+
11+
#include "git2/annotated_commit.h"
12+
#include "git2/apply.h"
13+
#include "git2/attr.h"
14+
#include "git2/blob.h"
15+
#include "git2/blame.h"
16+
#include "git2/branch.h"
17+
#include "git2/buffer.h"
18+
#include "git2/cert.h"
19+
#include "git2/checkout.h"
20+
#include "git2/cherrypick.h"
21+
#include "git2/clone.h"
22+
#include "git2/commit.h"
23+
#include "git2/common.h"
24+
#include "git2/config.h"
25+
#include "git2/credential.h"
26+
#include "git2/deprecated.h"
27+
#include "git2/describe.h"
28+
#include "git2/diff.h"
29+
#include "git2/email.h"
30+
#include "git2/errors.h"
31+
#include "git2/experimental.h"
32+
#include "git2/filter.h"
33+
#include "git2/global.h"
34+
#include "git2/graph.h"
35+
#include "git2/ignore.h"
36+
#include "git2/index.h"
37+
#include "git2/indexer.h"
38+
#include "git2/mailmap.h"
39+
#include "git2/merge.h"
40+
#include "git2/message.h"
41+
#include "git2/net.h"
42+
#include "git2/notes.h"
43+
#include "git2/object.h"
44+
#include "git2/odb.h"
45+
#include "git2/odb_backend.h"
46+
#include "git2/oid.h"
47+
#include "git2/pack.h"
48+
#include "git2/patch.h"
49+
#include "git2/pathspec.h"
50+
#include "git2/proxy.h"
51+
#include "git2/rebase.h"
52+
#include "git2/refdb.h"
53+
#include "git2/reflog.h"
54+
#include "git2/refs.h"
55+
#include "git2/refspec.h"
56+
#include "git2/remote.h"
57+
#include "git2/repository.h"
58+
#include "git2/reset.h"
59+
#include "git2/revert.h"
60+
#include "git2/revparse.h"
61+
#include "git2/revwalk.h"
62+
#include "git2/signature.h"
63+
#include "git2/stash.h"
64+
#include "git2/status.h"
65+
#include "git2/submodule.h"
66+
#include "git2/tag.h"
67+
#include "git2/transport.h"
68+
#include "git2/transaction.h"
69+
#include "git2/tree.h"
70+
#include "git2/types.h"
71+
#include "git2/version.h"
72+
#include "git2/worktree.h"
73+
74+
#endif

0 commit comments

Comments
 (0)