Even more HMMM. Guessing this commit? #21
This file contains hidden or 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: Matrix | |
| on: | |
| push: | |
| branches: | |
| - '🙄' | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build git | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: | | |
| DIR=$( pwd ) | |
| sudo sed -i -e 's/Types: deb/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources | |
| sudo apt-get update | |
| sudo apt-get build-dep git | |
| git clone --depth=1 https://github.com/git/git | |
| cd git | |
| git fetch --depth=1 fa383b96c7211a415152dffaf6b272bb09116f06 | |
| git checkout fa383b96c7211a415152dffaf6b272bb09116f06 | |
| make -j 4 | |
| make install | |
| cd ~ | |
| tar --xz -cvvf "$DIR/git.tar.xz" bin libexec | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| path: git.tar.xz | |
| retention-days: 1 | |
| compression-level: 0 | |
| archive: false | |
| test: | |
| name: Test git deepen ${{ matrix.n }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| needs: [ build ] | |
| strategy: | |
| matrix: | |
| n: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ] | |
| steps: | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| name: git.tar.xz | |
| - run: | | |
| DIR=$( pwd ) | |
| cd ~ | |
| tar -xvvf "$DIR/git.tar.xz" bin libexec | |
| cd "$DIR" | |
| function git { | |
| printf '\e[32mgit' | |
| printf ' %q' "$@" | |
| printf '\e[0m\n' | |
| ~/bin/git "$@" | |
| } | |
| git --version | |
| git init . | |
| git remote add origin https://github.com/Automattic/jetpack | |
| git config --local gc.auto 0 | |
| git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=10 origin 57a055c07d944301558ce5727f803ee427abd15d | |
| git sparse-checkout disable | |
| git config --local --unset-all extensions.worktreeConfig | |
| git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=10 origin 57a055c07d944301558ce5727f803ee427abd15d 77c13651933aedae78b1f6a2e3e0cef84943d2a3 | |
| echo "---" | |
| stat .git/shallow | |
| cat .git/shallow | |
| echo "---" | |
| EXIT=0 | |
| if ! git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=20 origin 57a055c07d944301558ce5727f803ee427abd15d 77c13651933aedae78b1f6a2e3e0cef84943d2a3; then | |
| EXIT=1 | |
| fi | |
| echo "---" | |
| stat .git/shallow | |
| cat .git/shallow | |
| exit $EXIT |