File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build with Git 2.50.1
2+ on :
3+ push :
4+ branches : [ main ]
5+ pull_request :
6+ branches : [ main ]
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ # 1) Check out your repo (this will use the default git first, which is fine)
12+ - name : Checkout repository
13+ uses : actions/checkout@v4
14+ # 2) Install build dependencies needed for Git
15+ - name : Install build dependencies for Git
16+ run : |
17+ sudo apt-get update
18+ sudo apt-get install -y \
19+ build-essential \
20+ libssl-dev \
21+ libz-dev \
22+ libcurl4-openssl-dev \
23+ gettext \
24+ asciidoc \
25+ xmlto \
26+ libexpat1-dev \
27+ tar \
28+ wget
29+ # 3) Download Git 2.50.1 source tarball
30+ - name : Download Git 2.50.1
31+ run : |
32+ wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.50.1.tar.gz
33+ tar -xzf git-2.50.1.tar.gz
34+ # 4) Build and install Git 2.50.1 into /usr/local
35+ - name : Build and install Git 2.50.1
36+ run : |
37+ cd git-2.50.1
38+ make prefix=/usr/local all
39+ sudo make prefix=/usr/local install
40+ # 5) Make sure /usr/local/bin is preferred and show version
41+ - name : Use Git 2.50.1 as default
42+ shell : bash
43+ run : |
44+ echo “Using git at: $(command -v git)”
45+ git --version
46+ # 6) Your actual build / test step(s) go here
47+ - name : Run build
48+ run : |
49+ # Example commands; replace with your real build
50+ git --version
51+ echo “Do your build here (npm/yarn/maven/whatever)”
You can’t perform that action at this time.
0 commit comments