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 2929e8c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 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,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
Expand Down

0 comments on commit 2929e8c

Please sign in to comment.