Commit Graph

13 Commits

Author SHA1 Message Date
lhchavez a164eb120f Fix the `github-tag-action` workflow (#932)
This has been failing for a while because of some changes in `git`.

(cherry picked from commit 4b14d29c20)
2022-10-05 01:12:40 +00:00
lhchavez 467e9a7a64
Generate stringer files automatically (#841) (#868)
Added `stringer` annotations to `git.go` for `ErrorClass` and
`ErrorCode`. Added `generate` rule for `Makefile` to generate
string representations for these types (first building cgo files
in `_obj` dir to get C constants). Finally, updated `ci` actions
workflow to check that generated files are up to date.

Fixes: #543
(cherry picked from commit 5e35338d58)

Co-authored-by: Kirill <g4s8.public@gmail.com>
2021-11-09 06:48:40 -08:00
lhchavez bd435e1623
Rename the default branch to `main` (#786) (#789)
We've renamed the default branch from `master` to `main`, so we need to
change a bunch of references to that.

(cherry picked from commit be5a99a807)
2021-09-04 13:48:44 -07:00
lhchavez ea885e4fa7
Remove the legacy builders (#776) (#779)
These builds are no longer working because some of the dependencies now
require newer versions of Go. Seems like the ecosystem has moved to Go
1.11+, so we are now forced to follow suit.

(cherry picked from commit df7084d36a)
2021-09-04 12:56:00 -07:00
lhchavez f09f9c89ae 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.

(cherry picked from commit abf02bc7d7)
2020-12-06 13:09:13 -08:00
lhchavez aae7e1b7c8 Build improvements (#707)
This change makes the test be verbose and use parallelization if
possible (when using gmake to build).

(cherry picked from commit 54afccfa0f)
2020-12-06 13:09:13 -08:00
lhchavez bd9b40fc67
CI refresh (#666) (#670)
This change:

* Makes the Travis tests only run tip, since the rest of the Go versions are better served by GitHub Actions.
* Use Go 1.15 in the CI. This has been released for a while.

(cherry picked from commit f83530b18d)
2020-11-02 18:47:12 -08:00
github-actions[bot] fb4e5911aa
Add support for creating signed commits (#626) (#640)
(cherry picked from commit 7d4453198b)

This is only a partial cherry-pick, since signing commits during a
rebase is not supported in v0.28.
2020-08-18 09:52:35 -07:00
github-actions[bot] a3140afde2
Add two more GitHub Actions workflows (#633) (#634)
This change adds:

* `tag.yml`: Creates a new tag every time the master or a release branch
  is pushed.
* `backport.yml`: Creates a cherry-pick in older release branches to
  keep them up to date with little cost.

(cherry picked from commit 2ac9f4e69b)
2020-08-16 07:28:18 -07:00
lhchavez fcb8a8cc3b Refresh the GitHub Actions CI (#632)
This change:

* Builds the library with Go 1.14, too.
* Builds the non-legacy tests with Ubuntu Focal (20.04).
* Adds testing for system-wide libraries, both static and dynamic
  versions.
* Fixes a typo in the README.

(cherry picked from commit 5314951759)
2020-08-16 07:19:20 -07:00
lhchavez e4b04e142b Update the `README.md` to clarify some aspects of static libgit2 (#620)
This change improves the documentation surrounding libgit2 static builds
and modules.

Fixes: #618
(cherry picked from commit 9eaf4fed5f)
2020-08-16 07:19:20 -07:00
lhchavez d47253fb80 Update CI configuration
This change:

* Updates the GitHub actions so that they run different commands for the
  dynamic and static flavors of libgit2.
* Updates the .travis.yml file so that it does roughly the same as the
  GitHub actions.
* Adds the release-* branches to the CI configurations.

(cherry picked from commit 26edffd5f5)
2020-08-16 07:19:20 -07:00
lhchavez 9f2bfe5f32 Merge pull request #520 from libgit2/actions
Setup CI via Actions

(cherry picked from commit f21ecd9e74)
2020-08-16 07:19:20 -07:00