Skip to content

Commit

Permalink
fix: Predef cloning in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
414owen committed Aug 13, 2024
1 parent eb54e4e commit 5558099
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Tests
on:
pull_request:
push:
branches:
- master

defaults:
run:
Expand Down Expand Up @@ -33,7 +31,14 @@ 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.git predef_tmp
pushd predef_tmp
git sparse-checkout set --no-cone predef
popd
sudo mv predef_tmp/predef /usr/include/predef
rm -r predef_tmp
popd
}
[ -d predef ] || predef
popd
Expand Down

0 comments on commit 5558099

Please sign in to comment.