Skip to content

ci: add workflow to build [email protected]

ci: add workflow to build [email protected] #1

Workflow file for this run

name: Build with Git 2.50.1
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# 1) Check out your repo (this will use the default git first, which is fine)
- name: Checkout repository
uses: actions/checkout@v4
# 2) Install build dependencies needed for Git
- name: Install build dependencies for Git
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
libssl-dev \
libz-dev \
libcurl4-openssl-dev \
gettext \
asciidoc \
xmlto \
libexpat1-dev \
tar \
wget
# 3) Download Git 2.50.1 source tarball
- name: Download Git 2.50.1
run: |
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.50.1.tar.gz
tar -xzf git-2.50.1.tar.gz
# 4) Build and install Git 2.50.1 into /usr/local
- name: Build and install Git 2.50.1
run: |
cd git-2.50.1
make prefix=/usr/local all
sudo make prefix=/usr/local install
# 5) Make sure /usr/local/bin is preferred and show version
- name: Use Git 2.50.1 as default
shell: bash
run: |
echo “Using git at: $(command -v git)”
git --version
# 6) Your actual build / test step(s) go here
- name: Run build
run: |
# Example commands; replace with your real build
git --version
echo “Do your build here (npm/yarn/maven/whatever)”