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 cb5e61e
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 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,18 @@ 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
echo "Cloning predef"
git clone -n --depth=1 --filter=tree:0 https://github.com/natefoo/predef.git predef_tmp
pushd predef_tmp
echo "Sparse checking out predef"
git sparse-checkout set --no-cone predef
git checkout
ls -lah
popd
sudo mv predef_tmp/predef /usr/include/predef
rm -r predef_tmp
popd
}
[ -d predef ] || predef
popd
Expand Down

0 comments on commit cb5e61e

Please sign in to comment.