Skip to content

Commit 9aa5f0c

Browse files
committed
Sigh
1 parent 64b5713 commit 9aa5f0c

2 files changed

Lines changed: 31 additions & 27 deletions

File tree

.github/workflows/matrix.yml

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,51 +5,55 @@ on:
55
- '🙄'
66

77
permissions:
8-
actions: read
98
contents: read
109

1110
jobs:
12-
# build:
13-
# name: Build git
14-
# runs-on: ubuntu-latest
15-
# steps:
16-
# - run: |
17-
# sudo sed -i -e 's/Types: deb/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources
18-
#
19-
# sudo apt-get update
20-
# sudo apt-get build-dep git
21-
# git clone --depth=1 --branch=v2.53.0 https://github.com/git/git
22-
# cd git
23-
# make
24-
# - uses: actions/upload-artifact@v7
25-
# with:
26-
# name: git
27-
# path: git/git
28-
# retention-days: 1
11+
build:
12+
name: Build git
13+
runs-on: ubuntu-latest
14+
steps:
15+
- run: |
16+
DIR=$( pwd )
17+
sudo sed -i -e 's/Types: deb/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources
18+
19+
sudo apt-get update
20+
sudo apt-get build-dep git
21+
git clone --depth=1 --branch=v2.53.0 https://github.com/git/git
22+
cd git
23+
make -j 4
24+
make install
25+
cd ~
26+
tar --xz -cvvf "$DIR/git.tar.xz" bin libexec
27+
- uses: actions/upload-artifact@v7
28+
with:
29+
path: git.tar.xz
30+
retention-days: 1
31+
compression-level: 0
32+
archive: false
2933

3034
test:
3135
name: Test git deepen ${{ matrix.n }}
3236
runs-on: ubuntu-latest
3337
timeout-minutes: 5
34-
# needs: [ build ]
38+
needs: [ build ]
3539
strategy:
3640
matrix:
3741
n: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]
3842
steps:
39-
# - uses: actions/download-artifact@v7
40-
# with:
41-
# name: git
42-
- uses: actions/checkout@v6
43+
- uses: actions/download-artifact@v7
44+
with:
45+
name: git.tar.xz
4346
- run: |
44-
unzip git.zip
45-
chmod +x git
46-
rm -rf .git
47+
DIR=$( pwd )
48+
cd ~
49+
tar -xvvf "$DIR/git.tar.xz" bin libexec
50+
cd "$DIR"
4751
4852
function git {
4953
printf '\e[32mgit'
5054
printf ' %q' "$@"
5155
printf '\e[0m\n'
52-
./git "$@"
56+
~/bin/git "$@"
5357
}
5458
5559
git --version

git.zip

-9.14 MB
Binary file not shown.

0 commit comments

Comments
 (0)