summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2020-12-06 11:55:04 -0800
committerGitHub <[email protected]>2020-12-06 11:55:04 -0800
commitabf02bc7d79dfb7b0bbcd404ebecb202cff2a18e (patch)
treeec93caf1ed9238b91e7ec6a1c1e470441860f6fc /.github
parent54afccfa0f5a5574525cbba3b4568cbda252a3df (diff)
Add `NewCredentialSSHKeyFromSigner` (#706)
This change adds `NewCredentialSSHKeyFromSigner`, which allows idiomatic use of SSH keys from Go. This also lets us spin off an SSH server in the tests.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d326170..fc615f2 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -34,6 +34,7 @@ jobs:
GOPATH: /home/runner/work/git2go
run: |
git submodule update --init
+ sudo apt-get install -y --no-install-recommends libssh2-1-dev
make build-libgit2-static
go get -tags static -t github.com/${{ github.repository }}/...
go build -tags static github.com/${{ github.repository }}/...
@@ -62,6 +63,7 @@ jobs:
- name: Build
run: |
git submodule update --init
+ sudo apt-get install -y --no-install-recommends libssh2-1-dev
make build-libgit2-static
- name: Test
run: make TEST_ARGS=-test.v test-static
@@ -84,6 +86,7 @@ jobs:
- name: Build
run: |
git submodule update --init
+ sudo apt-get install -y --no-install-recommends libssh2-1-dev
make build-libgit2-dynamic
- name: Test
run: make TEST_ARGS=-test.v test-dynamic
@@ -108,6 +111,7 @@ jobs:
- name: Build libgit2 ${{ matrix.libgit2 }}
run: |
git submodule update --init
+ sudo apt-get install -y --no-install-recommends libssh2-1-dev
sudo env BUILD_LIBGIT_REF=v${{ matrix.libgit2 }} ./script/build-libgit2.sh --dynamic --system
- name: Test
run: make TEST_ARGS=-test.v test
@@ -130,6 +134,7 @@ jobs:
- name: Build libgit2
run: |
git submodule update --init
+ sudo apt-get install -y --no-install-recommends libssh2-1-dev
sudo ./script/build-libgit2.sh --static --system
- name: Test
run: go test --count=1 --tags "static,system_libgit2" ./...