Skip to content

Commit

Permalink
Always update submodules before building
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-psi committed Jan 16, 2022
1 parent e18c282 commit 511574e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,22 @@ jobs:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout repository
-
name: Checkout repository
uses: actions/checkout@v2
with:
submodules: true
-
-
name: Update submodules
run: |
git pull --recurse-submodules
git submodule update --remote --recursive
-
name: Check cache
id: verify-cache
run: |
echo "::set-output name=heads::`git ls-remote https://github.com/theos/theos | head -n 1 | cut -f 1`-`git ls-remote https://github.com/theos/sdks | head -n 1 | cut -f 1`"
-
-
name: Use cache
id: cache
uses: actions/cache@v2
Expand All @@ -32,12 +38,12 @@ jobs:
run: |
cd /Users/runner/work/tweaks/tweaks
find patches/ -type f -iname *.patch -exec /bin/bash -c '
patchfile=$1;
patchfile=$1;
orig_file=${patchfile#patches/}
orig_file=${orig_file%.patch}
orig_file=${orig_file%.patch}
orig_file=${orig_file#/}
patch $orig_file $patchfile
' bash '{}' \;
-
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "TCBNoJB"]
path = TCBNoJB
url = https://github.com/quanshousio/TCBNoJB
[submodule "FlyJB-X"]
path = FlyJB-X
url = https://github.com/hekatos/FlyJB-X
1 change: 1 addition & 0 deletions FlyJB-X
Submodule FlyJB-X added at 6fb308

0 comments on commit 511574e

Please sign in to comment.