This repository was archived by the owner on Dec 16, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2323 - 5000:5000
2424 steps :
2525 - name : Checkout
26- id : checkout
2726 uses : actions/checkout@v2
27+ - name : Unshallow
28+ run : git fetch --prune --unshallow
2829 - name : Set up QEMU
2930 id : qemu
3031 uses : docker/setup-qemu-action@v1
5455 key : ${{ runner.os }}-buildx-ghcache-${{ github.sha }}
5556 restore-keys : |
5657 ${{ runner.os }}-buildx-ghcache-
58+ - run : cat ./hack/Makefile
5759 - name : Build candidate image
5860 id : build_candidate
5961 uses : docker/build-push-action@v2
Original file line number Diff line number Diff line change 11FROM scratch
22
3- COPY hack/Makefile Makefile
3+ COPY ./ hack/Makefile Makefile
Original file line number Diff line number Diff line change 11# This Dockerfile tests the hack/Makefile output against git2go.
22ARG BASE_VARIANT=bullseye
3- ARG GO_VERSION=1.16.8
3+ ARG GO_VERSION=1.17.5
44ARG XX_VERSION=1.0.0-rc.2
55
66FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
@@ -12,7 +12,7 @@ FROM gostable AS go-linux
1212FROM go-${TARGETOS} AS build-base-bullseye
1313
1414COPY --from=xx / /
15- COPY hack/Makefile /libgit2/Makefile
15+ COPY ./ hack/Makefile /libgit2/Makefile
1616
1717RUN make -C /libgit2/ cmake
1818
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ STATIC_TEST_TAG := test
55PLATFORMS ?= linux/amd64,linux/arm/v7,linux/arm64
66BUILD_ARGS ?=
77
8- GIT2GO_TAG ?= v33.0 .1
8+ GIT2GO_TAG ?= v31.6 .1
99
1010.PHONY : build
1111build :
Original file line number Diff line number Diff line change @@ -15,16 +15,16 @@ INSTALL_LIBDIR ?= $(INSTALL_PREFIX)/lib/$(shell xx-info triple)
1515endif
1616BUILD_TYPE ?= "RelWithDebInfo"
1717FLAGS ?=
18- USE_HTTPS ?= OFF
19- USE_SSH ?= OFF
18+ USE_HTTPS ?= OpenSSL
19+ USE_SSH ?= ON
2020USE_BUNDLED_ZLIB ?= OFF
2121BUILD_SHARED_LIBS ?= ON
2222
2323# Cmake version to be installed.
2424CMAKE_VERSION ?= 3.21.3
2525
2626# Libgit2 version to be compiled and installed.
27- LIBGIT2_VERSION ?= 1.3.0
27+ LIBGIT2_VERSION ?= 1.1.1
2828# In some scenarios libgit2 needs to be checked out to a specific commit.
2929# This takes presidence over LIBGIT_VERSION if defined.
3030# Ref: https://github.com/libgit2/git2go/issues/834
@@ -127,7 +127,7 @@ $(LIBGIT2):
127127 -DBUILD_CLAR:BOOL:BOOL=OFF \
128128 -DTHREADSAFE:BOOL=ON \
129129 -DBUILD_SHARED_LIBS:BOOL=$(BUILD_SHARED_LIBS ) \
130- -DUSE_BUNDLED_ZLIB:BOOL=OFF \
130+ -DUSE_BUNDLED_ZLIB:BOOL=$( USE_BUNDLED_ZLIB ) \
131131 -DUSE_HTTP_PARSER:STRING=builtin \
132132 -DREGEX_BACKEND:STRING=builtin \
133133 -DUSE_HTTPS:STRING=$(USE_HTTPS ) \
You can’t perform that action at this time.
0 commit comments