Merge pull request #4025 from pwithnall/git-clone

check: Limit clone depth for clones done as part of CI builds
This commit is contained in:
Phaedrus Leeds
2020-12-15 07:45:42 -08:00
committed by GitHub

View File

@@ -48,18 +48,16 @@ jobs:
submodules: true
- name: Build malcontent dependency
run: |
git clone https://gitlab.freedesktop.org/pwithnall/malcontent.git ./malcontent
git clone --branch 0.4.0 --depth 1 --no-tags https://gitlab.freedesktop.org/pwithnall/malcontent.git ./malcontent
pushd ./malcontent
git checkout tags/0.4.0
meson setup --prefix=/usr _build
ninja -C _build
sudo ninja -C _build install
popd
- name: Build ostree dependency
run: |
git clone https://github.com/ostreedev/ostree.git ./ostree
git clone --branch v2020.8 --depth 1 --no-tags https://github.com/ostreedev/ostree.git ./ostree
pushd ./ostree
git checkout 7bc53f006351fcf5d32d9427e61a4f842f57f67b
./autogen.sh --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --sysconfdir=/etc --localstatedir=/var
make -j $(getconf _NPROCESSORS_ONLN)
sudo make install
@@ -113,9 +111,8 @@ jobs:
libgirepository1.0-dev libappstream-glib-dev libdconf-dev clang e2fslibs-dev
- name: Build ostree dependency
run: |
git clone https://github.com/ostreedev/ostree.git ./ostree
git clone --branch v2020.8 --depth 1 --no-tags https://github.com/ostreedev/ostree.git ./ostree
pushd ./ostree
git checkout 7bc53f006351fcf5d32d9427e61a4f842f57f67b
./autogen.sh --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --sysconfdir=/etc --localstatedir=/var
make -j $(getconf _NPROCESSORS_ONLN)
sudo make install
@@ -151,9 +148,8 @@ jobs:
submodules: true
- name: Build ostree dependency
run: |
git clone https://github.com/ostreedev/ostree.git ./ostree
git clone --branch v2020.8 --depth 1 --no-tags https://github.com/ostreedev/ostree.git ./ostree
pushd ./ostree
git checkout 7bc53f006351fcf5d32d9427e61a4f842f57f67b
./autogen.sh --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --sysconfdir=/etc --localstatedir=/var
make -j $(getconf _NPROCESSORS_ONLN)
sudo make install
@@ -186,9 +182,8 @@ jobs:
submodules: true
- name: Build ostree dependency
run: |
git clone https://github.com/ostreedev/ostree.git ./ostree
git clone --branch v2020.8 --depth 1 --no-tags https://github.com/ostreedev/ostree.git ./ostree
pushd ./ostree
git checkout 7bc53f006351fcf5d32d9427e61a4f842f57f67b
./autogen.sh --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --sysconfdir=/etc --localstatedir=/var
make -j $(getconf _NPROCESSORS_ONLN)
sudo make install