diff options
| author | Jeff Carr <[email protected]> | 2024-12-16 17:50:57 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-16 17:50:57 -0600 |
| commit | 530f3618a8f4c7d9c8d3981548112439b22e09e7 (patch) | |
| tree | 30b529a83767648dd31c8bfa6fff6b6163174909 /.github | |
| parent | e65b1c188ccb9b4aa4863ec702c3985c382f53db (diff) | |
update to libgit2 version 1.8.4. dump old github and vendor stuff
go install go.wit.com/apps/go-clone@latest
go install go.wit.com/apps/go-mod-clean@latest
go-clone --recusive go.wit.com/lib/git2go
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/backport.yml | 54 | ||||
| -rw-r--r-- | .github/workflows/ci.yml | 130 | ||||
| -rw-r--r-- | .github/workflows/tag.yml | 28 |
3 files changed, 0 insertions, 212 deletions
diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml deleted file mode 100644 index b3fbb4e..0000000 --- a/.github/workflows/backport.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: Backport to older releases -on: - push: - branches: - - main - -jobs: - - backport: - name: Backport change to branch ${{ matrix.branch }} - continue-on-error: true - strategy: - fail-fast: false - matrix: - branch: [ 'release-1.3', 'release-1.2', 'release-1.1', 'release-1.0', 'release-0.28', 'release-0.27' ] - - runs-on: ubuntu-20.04 - - steps: - - name: Check out code - uses: actions/checkout@v1 - with: - fetch-depth: 0 - - name: Create a cherry-pick PR - run: | - if ! git diff --quiet HEAD^ HEAD -- vendor/libgit2; then - echo '::warning::Skipping cherry-pick since it is a vendored libgit2 bump' - exit 0 - fi - - BRANCH_NAME="cherry-pick-${{ github.run_id }}-${{ matrix.branch }}" - - # Setup usernames and authentication - git config --global user.name "${{ github.actor }}" - git config --global user.email "${{ github.actor }}@users.noreply.github.com" - cat <<- EOF > $HOME/.netrc - machine github.com - login ${{ github.actor }} - password ${{ secrets.GITHUB_TOKEN }} - machine api.github.com - login ${{ github.actor }} - password ${{ secrets.GITHUB_TOKEN }} - EOF - chmod 600 $HOME/.netrc - - # Create the cherry-pick commit and create the PR for it. - git checkout "${{ matrix.branch }}" - git switch -c "${BRANCH_NAME}" - git cherry-pick -x "${{ github.sha }}" - git push --set-upstream origin "${BRANCH_NAME}" - GITHUB_TOKEN="${{ secrets.GITHUB_TOKEN }}" gh pr create \ - --base "${{ matrix.branch }}" \ - --title "$(git --no-pager show --format="%s" --no-patch HEAD)" \ - --body "$(git --no-pager show --format="%b" --no-patch HEAD)" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 4c884fe..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,130 +0,0 @@ -name: git2go CI -on: - pull_request: - push: - branches: - - main - - release-* - - v* - -jobs: - - build-static: - strategy: - fail-fast: false - matrix: - go: [ '1.11', '1.12', '1.13', '1.14', '1.15', '1.16', '1.17' ] - name: Go ${{ matrix.go }} - - runs-on: ubuntu-20.04 - - steps: - - name: Set up Go - uses: actions/setup-go@v1 - with: - go-version: ${{ matrix.go }} - id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v1 - - 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 - - build-dynamic: - strategy: - fail-fast: false - name: Go (dynamic) - - runs-on: ubuntu-20.04 - - steps: - - name: Set up Go - uses: actions/setup-go@v1 - with: - go-version: '1.17' - id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v1 - - 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 - - build-system-dynamic: - strategy: - fail-fast: false - matrix: - libgit2: - - 'v1.5.0' - name: Go (system-wide, dynamic) - - runs-on: ubuntu-20.04 - - steps: - - name: Set up Go - uses: actions/setup-go@v1 - with: - go-version: '1.17' - id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v1 - - 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=${{ matrix.libgit2 }} ./script/build-libgit2.sh --dynamic --system - - name: Test - run: make TEST_ARGS=-test.v test - - build-system-static: - strategy: - fail-fast: false - name: Go (system-wide, static) - - runs-on: ubuntu-20.04 - - steps: - - name: Set up Go - uses: actions/setup-go@v1 - with: - go-version: '1.17' - id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v1 - - 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" ./... - - check-generate: - name: Check generated files were not modified - runs-on: ubuntu-20.04 - steps: - - name: Set up Go - uses: actions/setup-go@v1 - with: - go-version: '1.17' - id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - name: Install libgit2 build dependencies - run: | - git submodule update --init - sudo apt-get install -y --no-install-recommends libssh2-1-dev - go install golang.org/x/tools/cmd/stringer@latest - - name: Generate files - run: | - export PATH=$(go env GOPATH)/bin:$PATH - make generate - - name: Check nothing changed - run: git diff --quiet --exit-code || (echo "detected changes after generate" ; git status ; exit 1) diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml deleted file mode 100644 index d939528..0000000 --- a/.github/workflows/tag.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Tag new releases -on: - push: - branches: - - main - - release-* - -jobs: - - tag-release: - name: Bump tag in ${{ github.ref }} - - runs-on: ubuntu-20.04 - - steps: - - name: Check out code - uses: actions/checkout@v1 - with: - fetch-depth: 0 - - name: Bump version and push tag - id: bump-version - uses: anothrNick/github-tag-action@43ed073f5c1445ca8b80d920ce2f8fa550ae4e8d - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - WITH_V: true - DEFAULT_BUMP: patch - TAG_CONTEXT: branch - RELEASE_BRANCHES: .* |
