Skip to content

TEST

TEST #750

Workflow file for this run

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
- 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"
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
- 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"