Use shallow clone for CI

This commit is contained in:
Naren Sirigere 2026-07-12 03:41:42 +05:30 committed by Rot127
parent a57652ccc0
commit d1df8bd45a
4 changed files with 9 additions and 10 deletions

View file

@ -384,7 +384,7 @@ jobs:
git fetch origin ${{ github.ref }}
git checkout -b local_branch FETCH_HEAD
- name: Checkout our Testsuite Binaries
run: git clone https://github.com/rizinorg/rizin-testbins test/bins
run: git clone --depth 1 https://github.com/rizinorg/rizin-testbins test/bins
working-directory: rizin
- name: Build
run: |
@ -463,7 +463,7 @@ jobs:
git fetch origin ${{ github.ref }}
git checkout -b local_branch FETCH_HEAD
- name: Checkout our Testsuite Binaries
run: git clone https://github.com/rizinorg/rizin-testbins test/bins
run: git clone --depth 1 https://github.com/rizinorg/rizin-testbins test/bins
working-directory: rizin
# Old Debian git doesn't recognize this directive
- name: Workaround to disable git depth
@ -507,7 +507,7 @@ jobs:
git fetch origin ${{ github.ref }}
git checkout -b local_branch FETCH_HEAD
- name: Checkout our Testsuite Binaries
run: git clone https://github.com/rizinorg/rizin-testbins test/bins
run: git clone --depth 1 https://github.com/rizinorg/rizin-testbins test/bins
working-directory: rizin
- name: Compile with meson
run: |
@ -815,10 +815,10 @@ jobs:
working-directory: rizin
- name: Checkout rz-bindgen (stable)
if: github.ref == 'refs/heads/stable'
run: git clone -b stable https://github.com/rizinorg/rz-bindgen
run: git clone --depth 1 -b stable https://github.com/rizinorg/rz-bindgen
- name: Checkout rz-bindgen (dev)
if: github.ref != 'refs/heads/stable'
run: git clone -b dev https://github.com/rizinorg/rz-bindgen
run: git clone --depth 1 -b dev https://github.com/rizinorg/rz-bindgen
- name: Build rz-bindgen
run: |
meson setup --prefix=/usr -Dplugin=enabled build

View file

@ -81,10 +81,10 @@ jobs:
path: rizin
- name: Checkout rz-bindgen (stable)
if: github.ref == 'refs/heads/stable'
run: git clone -b stable https://github.com/rizinorg/rz-bindgen
run: git clone --depth 1 -b stable https://github.com/rizinorg/rz-bindgen
- name: Checkout rz-bindgen (dev)
if: github.ref != 'refs/heads/stable'
run: git clone -b dev https://github.com/rizinorg/rz-bindgen
run: git clone --depth 1 -b dev https://github.com/rizinorg/rz-bindgen
- name: Install dependencies
run: |
sudo pip install meson ninja

View file

@ -49,7 +49,7 @@ jobs:
- name: Checkout Muon repository
run: |
git clone https://git.sr.ht/~lattis/muon
git clone --depth 1 https://git.sr.ht/~lattis/muon
- name: Compiling and installing Muon
working-directory: muon

View file

@ -67,9 +67,8 @@ jobs:
- name: Checkout meson from ret2libc git
run: |
git clone https://github.com/ret2libc/meson.git
git clone --depth 1 -b tiny-cc https://github.com/ret2libc/meson.git
cd meson
git checkout tiny-cc
python3 setup.py build
sudo python3 setup.py install