[CI] Update cache
This commit is contained in:
parent
ab26c5334d
commit
a1201ae42b
|
|
@ -36,6 +36,15 @@ jobs:
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
- name: Cache Gradle
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.gradle/caches
|
||||||
|
~/.gradle/wrapper
|
||||||
|
key: gradle-core-${{ github.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
gradle-
|
||||||
- name: Cache Cmake
|
- name: Cache Cmake
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
|
|
@ -44,19 +53,13 @@ jobs:
|
||||||
restore-keys: ccache
|
restore-keys: ccache
|
||||||
- name: Install ccache
|
- name: Install ccache
|
||||||
run: sudo apt-get install -y ccache
|
run: sudo apt-get install -y ccache
|
||||||
- uses: burrunan/gradle-cache-action@v1
|
- name: Build with Gradle
|
||||||
name: Build with Gradle
|
run: |
|
||||||
with:
|
echo 'org.gradle.caching=true' >> gradle.properties
|
||||||
job-id: core
|
echo 'org.gradle.parallel=true' >> gradle.properties
|
||||||
arguments: |
|
echo 'org.gradle.vfs.watch=true' >> gradle.properties
|
||||||
zipRelease
|
echo 'org.gradle.jvmargs=-Xmx2048m' >> gradle.properties
|
||||||
zipDebug
|
./gradlew zipRelease zipDebug
|
||||||
gradle-version: wrapper
|
|
||||||
concurrent: true
|
|
||||||
properties: |
|
|
||||||
org.gradle.caching=true
|
|
||||||
org.gradle.parallel=true
|
|
||||||
org.gradle.vfs.watch=true
|
|
||||||
- name: Prepare artifact
|
- name: Prepare artifact
|
||||||
if: success()
|
if: success()
|
||||||
id: prepareArtifact
|
id: prepareArtifact
|
||||||
|
|
|
||||||
|
|
@ -35,20 +35,23 @@ jobs:
|
||||||
echo androidKeyPassword='${{ secrets.KEY_PASSWORD }}' >> gradle.properties
|
echo androidKeyPassword='${{ secrets.KEY_PASSWORD }}' >> gradle.properties
|
||||||
echo androidStoreFile='key.jks' >> gradle.properties
|
echo androidStoreFile='key.jks' >> gradle.properties
|
||||||
echo ${{ secrets.KEY_STORE }} | base64 --decode > key.jks
|
echo ${{ secrets.KEY_STORE }} | base64 --decode > key.jks
|
||||||
- uses: burrunan/gradle-cache-action@v1
|
- name: Cache Gradle
|
||||||
name: Build with Gradle
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
job-id: manager
|
path: |
|
||||||
arguments: ":app:assembleRelease"
|
~/.gradle/caches
|
||||||
gradle-version: wrapper
|
~/.gradle/wrapper
|
||||||
concurrent: true
|
key: gradle-manager-${{ github.sha }}
|
||||||
properties: |
|
restore-keys: |
|
||||||
org.gradle.caching=true
|
gradle-
|
||||||
org.gradle.parallel=true
|
|
||||||
org.gradle.vfs.watch=true
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
id: buildRelease
|
id: buildRelease
|
||||||
run: |
|
run: |
|
||||||
|
echo 'org.gradle.caching=true' >> gradle.properties
|
||||||
|
echo 'org.gradle.parallel=true' >> gradle.properties
|
||||||
|
echo 'org.gradle.vfs.watch=true' >> gradle.properties
|
||||||
|
echo 'org.gradle.jvmargs=-Xmx2048m' >> gradle.properties
|
||||||
|
./gradlew :app:assembleRelease
|
||||||
echo "::set-output name=releaseName::`ls app/build/outputs/apk/release/LSPosed*-v*-release.apk | awk -F '(/|.apk)' '{print $6}'`"
|
echo "::set-output name=releaseName::`ls app/build/outputs/apk/release/LSPosed*-v*-release.apk | awk -F '(/|.apk)' '{print $6}'`"
|
||||||
- name: Upload apk
|
- name: Upload apk
|
||||||
if: success()
|
if: success()
|
||||||
|
|
|
||||||
|
|
@ -167,6 +167,7 @@ task("buildLibcxx", Exec::class) {
|
||||||
environment("NDK_CCACHE", it)
|
environment("NDK_CCACHE", it)
|
||||||
environment("USE_CCACHE", "1")
|
environment("USE_CCACHE", "1")
|
||||||
environment("CCACHE_COMPILERCHECK", "content")
|
environment("CCACHE_COMPILERCHECK", "content")
|
||||||
|
environment("CCACHE_MAXSIZE", "100M")
|
||||||
} ?: run {
|
} ?: run {
|
||||||
println("not using ccache")
|
println("not using ccache")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,14 +20,16 @@
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.4.1)
|
cmake_minimum_required(VERSION 3.4.1)
|
||||||
|
|
||||||
find_program( CCACHE ccache )
|
find_program(CCACHE ccache)
|
||||||
|
|
||||||
if ( CCACHE )
|
if (CCACHE)
|
||||||
set( CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE} )
|
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE})
|
||||||
set( CMAKE_C_COMPILER_LAUNCHER ${CCACHE} )
|
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE})
|
||||||
else()
|
set(ENV{CCACHE_COMPILERCHECK} "content")
|
||||||
message( WARNING "Could not find CCache program." )
|
set(ENV{CCACHE_MAXSIZE} "100M")
|
||||||
endif()
|
else ()
|
||||||
|
message(WARNING "Could not find CCache program.")
|
||||||
|
endif ()
|
||||||
|
|
||||||
link_libraries("-ffixed-x18")
|
link_libraries("-ffixed-x18")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,6 @@ aux_source_directory(src/jni SRC_JNI_LIST)
|
||||||
include_directories(include src)
|
include_directories(include src)
|
||||||
add_executable(lspd ${SRC_LIST} ${SRC_JNI_LIST})
|
add_executable(lspd ${SRC_LIST} ${SRC_JNI_LIST})
|
||||||
|
|
||||||
set(ENV{CCACHE_COMPILERCHECK} "content")
|
|
||||||
|
|
||||||
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--dynamic-list=${CMAKE_SOURCE_DIR}/dynamic_list")
|
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--dynamic-list=${CMAKE_SOURCE_DIR}/dynamic_list")
|
||||||
|
|
||||||
find_package(riru REQUIRED CONFIG)
|
find_package(riru REQUIRED CONFIG)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue