From 2929e8c8222b12065960599524d76d962cfada67 Mon Sep 17 00:00:00 2001 From: Owen Shepherd Date: Tue, 13 Aug 2024 13:35:24 +0100 Subject: [PATCH] fix: Predef cloning in CI --- .github/workflows/tests.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4502e71..0c04af9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,8 +3,6 @@ name: Tests on: pull_request: push: - branches: - - master defaults: run: @@ -33,7 +31,13 @@ jobs: pushd /usr/include [ -f hedley.h ] || sudo wget https://raw.githubusercontent.com/nemequ/hedley/master/hedley.h -O ./hedley.h predef() { - sudo svn checkout https://github.com/natefoo/predef/master/predef + pushd /tmp + git clone -n --depth=1 --filter=tree:0 https://github.com/natefoo/predef/master/predef predef_tmp + pushd predef_tmp + git sparse-checkout set --no-cone predef + popd + sudo mv predef_tmp/predef /usr/include/predef + popd } [ -d predef ] || predef popd