Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 11 additions & 50 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,6 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Setup libgit2
run: |
wget https://github.com/libgit2/libgit2/releases/download/v1.1.0/libgit2-1.1.0.tar.gz
tar -xzf libgit2-1.1.0.tar.gz
cd libgit2-1.1.0
mkdir build && cd ./build
sudo apt-get install libssl-dev
cmake ..
cmake --build .
sudo make install
sudo /sbin/ldconfig -v
- run: |
go build

Expand All @@ -38,44 +27,16 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Install libgit2
run: |
brew install libssh2
brew install carlsberg/tap/libgit2@1.1.0
- run: go build

# build-windows:
# runs-on: windows-latest
# strategy:
# matrix:
# go: [ '1.17', '1.16' ]
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-go@v2
# with:
# go-version: ${{ matrix.go }}
# - name: Add choco packages
# run: |
# choco install wget
# - name: Build libgit2 and gitconvex
# run: |
# unzip -q ./lib/win/dep_libs.zip
# wget -q https://github.com/libgit2/libgit2/releases/download/v1.1.0/libgit2-1.1.0.zip
# unzip -q libgit2-1.1.0.zip
# cd libgit2-1.1.0
# cp -rp ../lib/ .
# git clone https://github.com/libssh2/libssh2 libssh2
# mkdir build && mkdir install && cd build
# cmake -DPKG_CONFIG_EXECUTABLE=C:\\msys64\\usr\\bin\\pkg-config.exe -DCMAKE_INSTALL_PREFIX=../install -DOPENSSL_ROOT_DIR=../lib/win/ -DBUILD_CLAR=OFF -DEMBED_SSH_PATH=../libssh2 ..
# cmake --build . --target install
# cd ../install
# cp ./bin/git2.dll /c/msys64/usr/bin
# cp ./lib/git2.lib /c/msys64/usr/lib
# cp ./lib/pkgconfig/libgit2.pc /c/msys64/usr/lib/pkgconfig
# cp -r ./include/* /c/msys64/usr/include
# cd ../..
# rm C:\\Strawberry\\perl\\bin\\pkg-config.bat
# export PATH="/c/msys64/:/c/msys64/usr/:/c/msys64/usr/bin:$PATH"
# go get -v ./...
# ./make.bat build
# - run: go build
build-windows:
runs-on: windows-latest
strategy:
matrix:
go: [ '1.17', '1.16' ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- run: go build
6 changes: 0 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,3 @@ archives:
windows: Windows
386: i386
amd64: x86_64
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,8 @@

[![Build](https://github.com/carlsberg/git-semver/actions/workflows/build.yml/badge.svg)](https://github.com/carlsberg/git-semver/actions/workflows/build.yml) [![LoC](https://tokei.rs/b1/github/crqra/git-semver)](https://github.com/crqra/git-semver)


> Git extension to easily manage your project's version based on [Semantic Versioning][semver] and [Conventional Commits][conventional-commits]

_work in progress_

## System Requirements

- `libgit2 >= 1.1`

## Commands

#### `git semver bump`
Expand All @@ -30,4 +23,4 @@ Outputs the next unreleased version
This project is released under the [MIT License](LICENSE).

[conventional-commits]: https://www.conventionalcommits.org/en/v1.0.0/
[semver]: https://semver.org
[semver]: https://semver.org
25 changes: 23 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,34 @@ go 1.17

require (
github.com/Masterminds/semver v1.5.0
github.com/libgit2/git2go/v31 v31.6.1
github.com/spf13/cobra v1.2.1
)

require (
github.com/go-git/go-git/v5 v5.4.2
github.com/stretchr/testify v1.7.0
)

require (
github.com/Microsoft/go-winio v0.4.16 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 // indirect
github.com/acomagu/bufpipe v1.0.3 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/emirpasic/gods v1.12.0 // indirect
github.com/go-git/gcfg v1.5.0 // indirect
github.com/go-git/go-billy/v5 v5.3.1 // indirect
github.com/imdario/mergo v0.3.12 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/sergi/go-diff v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
golang.org/x/crypto v0.0.0-20201203163018-be400aefbc4c // indirect
github.com/xanzy/ssh-agent v0.3.0 // indirect
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b // indirect
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 // indirect
golang.org/x/sys v0.0.0-20210510120138-977fb7262007 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)
Loading