mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 21:06:09 +00:00
Intergrated syncthing (#1442)
This commit is contained in:
1 parent
5b7e401b11
commit
8c09b2c6a8
34 files changed
+2492
-7
No files matched your search
@@ -311,6 +311,7 @@ jobs:
|
||||
!/docs/releases/media/
|
||||
sparse-checkout-cone-mode: false
|
||||
persist-credentials: false
|
||||
submodules: recursive
|
||||
|
||||
- name: Check human authorship
|
||||
env:
|
||||
@@ -524,6 +525,30 @@ jobs:
|
||||
- name: Build the add-on packs
|
||||
run: bash tools/packs/build.sh app/build/packs
|
||||
|
||||
- name: Pin the Syncthing source
|
||||
id: syncthing-src
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git submodule update --init --recursive tools/syncthing/syncthing-android
|
||||
echo "commit=$(git -C tools/syncthing/syncthing-android/syncthing/src/github.com/syncthing/syncthing rev-parse HEAD)" >> "$GITHUB_OUTPUT"
|
||||
- name: Cache Syncthing
|
||||
id: syncthing
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: app/src/main/jniLibs/arm64-v8a/libsyncthingnative.so
|
||||
key: syncthing-${{ env.NDK_VERSION }}-${{ hashFiles('tools/syncthing/build.sh', 'tools/syncthing/syncthing-android/gradle/libs.versions.toml') }}-${{ steps.syncthing-src.outputs.commit }}
|
||||
- uses: actions/setup-go@v5
|
||||
if: steps.syncthing.outputs.cache-hit != 'true'
|
||||
with:
|
||||
go-version: stable
|
||||
cache: false
|
||||
- name: Build Syncthing
|
||||
if: steps.syncthing.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
set -euo pipefail
|
||||
export NDK="$ANDROID_HOME/ndk/$NDK_VERSION"
|
||||
tools/syncthing/build.sh app/src/main/jniLibs/arm64-v8a
|
||||
|
||||
- name: Note when the proot pack pin is behind this build
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
Reference in new issue
Block a user