RETEST #765
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
env: | |
GOTOOLCHAIN: local | |
jobs: | |
build-latest: | |
name: Build with latest Git | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23.x' | |
- run: git fetch origin "+${GITHUB_REF}:${GITHUB_REF}" | |
if: ${{ github.ref_type == 'tag' }} | |
- run: git clone -b master https://github.com/git/git.git "$HOME/git" | |
- run: | | |
echo "GIT_INSTALL_DIR=$HOME/git" >> "$GITHUB_ENV" | |
echo "$HOME/git/bin" >> "$GITHUB_PATH" | |
if: ${{ matrix.os == 'macos-latest' }} | |
# We install our custom Git version into a PATH location ahead of | |
# that of the Git installed by Homebrew. | |
- run: script/build-git "$HOME/git" | |
- run: GIT_DEFAULT_HASH=sha256 script/cibuild | |
build-earliest: | |
name: Build with earliest Git | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23.x' | |
- run: git fetch origin "+${GITHUB_REF}:${GITHUB_REF}" | |
if: ${{ github.ref_type == 'tag' }} | |
- run: git clone -b v2.0.0 https://github.com/git/git.git "$HOME/git" | |
- run: | | |
echo "GIT_INSTALL_DIR=$HOME/git" >> "$GITHUB_ENV" | |
echo "$HOME/git/bin" >> "$GITHUB_PATH" | |
if: ${{ matrix.os == 'macos-latest' }} | |
# We install our custom Git version into a PATH location ahead of | |
# that of the Git installed by Homebrew. | |
- run: script/build-git "$HOME/git" | |
- run: script/cibuild |