[CI] Fix ccache (#1301)
This commit is contained in:
parent
f312331e1e
commit
4ce312d5b6
|
|
@ -20,11 +20,13 @@ jobs:
|
||||||
- name: Write key
|
- name: Write key
|
||||||
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
|
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
|
||||||
run: |
|
run: |
|
||||||
echo androidStorePassword='${{ secrets.KEY_STORE_PASSWORD }}' >> gradle.properties
|
if [ ! -z "${{ secrets.KEY_STORE }}" ]; then
|
||||||
echo androidKeyAlias='${{ secrets.ALIAS }}' >> gradle.properties
|
echo androidStorePassword='${{ secrets.KEY_STORE_PASSWORD }}' >> gradle.properties
|
||||||
echo androidKeyPassword='${{ secrets.KEY_PASSWORD }}' >> gradle.properties
|
echo androidKeyAlias='${{ secrets.ALIAS }}' >> gradle.properties
|
||||||
echo androidStoreFile='key.jks' >> gradle.properties
|
echo androidKeyPassword='${{ secrets.KEY_PASSWORD }}' >> gradle.properties
|
||||||
echo ${{ secrets.KEY_STORE }} | base64 --decode > key.jks
|
echo androidStoreFile='key.jks' >> gradle.properties
|
||||||
|
echo ${{ secrets.KEY_STORE }} | base64 --decode > key.jks
|
||||||
|
fi
|
||||||
- name: set up JDK 11
|
- name: set up JDK 11
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
|
|
@ -120,10 +122,12 @@ jobs:
|
||||||
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
|
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
|
||||||
COMMIT_URL: ${{ github.event.head_commit.url }}
|
COMMIT_URL: ${{ github.event.head_commit.url }}
|
||||||
run: |
|
run: |
|
||||||
OUTPUT="core/release/"
|
if [ ! -z "${{ secrets.BOT_TOKEN }}" ]; then
|
||||||
export riruRelease=$(find $OUTPUT -name "LSPosed-riru-v*-release.zip")
|
OUTPUT="core/release/"
|
||||||
export riruDebug=$(find $OUTPUT -name "LSPosed-riru-v*-debug.zip")
|
export riruRelease=$(find $OUTPUT -name "LSPosed-riru-v*-release.zip")
|
||||||
export zygiskRelease=$(find $OUTPUT -name "LSPosed-zygisk-v*-release.zip")
|
export riruDebug=$(find $OUTPUT -name "LSPosed-riru-v*-debug.zip")
|
||||||
export zygiskDebug=$(find $OUTPUT -name "LSPosed-zygisk-v*-debug.zip")
|
export zygiskRelease=$(find $OUTPUT -name "LSPosed-zygisk-v*-release.zip")
|
||||||
ESCAPED=`python3 -c 'import json,os,urllib.parse; msg = json.dumps(os.environ["COMMIT_MESSAGE"]); print(urllib.parse.quote(msg if len(msg) <= 1024 else json.dumps(os.environ["COMMIT_URL"])))'`
|
export zygiskDebug=$(find $OUTPUT -name "LSPosed-zygisk-v*-debug.zip")
|
||||||
curl -v "https://api.telegram.org/bot${BOT_TOKEN}/sendMediaGroup?chat_id=${CHANNEL_ID}&media=%5B%7B%22type%22%3A%22document%22%2C%20%22media%22%3A%22attach%3A%2F%2FzygiskRelease%22%7D%2C%7B%22type%22%3A%22document%22%2C%20%22media%22%3A%22attach%3A%2F%2FriruRelease%22%7D%2C%7B%22type%22%3A%22document%22%2C%20%22media%22%3A%22attach%3A%2F%2FzygiskDebug%22%7D%2C%7B%22type%22%3A%22document%22%2C%20%22media%22%3A%22attach%3A%2F%2FriruDebug%22%2C%22caption%22:${ESCAPED}%7D%5D" -F riruRelease="@$riruRelease" -F riruDebug="@$riruDebug" -F zygiskRelease="@$zygiskRelease" -F zygiskDebug="@$zygiskDebug"
|
ESCAPED=`python3 -c 'import json,os,urllib.parse; msg = json.dumps(os.environ["COMMIT_MESSAGE"]); print(urllib.parse.quote(msg if len(msg) <= 1024 else json.dumps(os.environ["COMMIT_URL"])))'`
|
||||||
|
curl -v "https://api.telegram.org/bot${BOT_TOKEN}/sendMediaGroup?chat_id=${CHANNEL_ID}&media=%5B%7B%22type%22%3A%22document%22%2C%20%22media%22%3A%22attach%3A%2F%2FzygiskRelease%22%7D%2C%7B%22type%22%3A%22document%22%2C%20%22media%22%3A%22attach%3A%2F%2FriruRelease%22%7D%2C%7B%22type%22%3A%22document%22%2C%20%22media%22%3A%22attach%3A%2F%2FzygiskDebug%22%7D%2C%7B%22type%22%3A%22document%22%2C%20%22media%22%3A%22attach%3A%2F%2FriruDebug%22%2C%22caption%22:${ESCAPED}%7D%5D" -F riruRelease="@$riruRelease" -F riruDebug="@$riruDebug" -F zygiskRelease="@$zygiskRelease" -F zygiskDebug="@$zygiskDebug"
|
||||||
|
fi
|
||||||
|
|
|
||||||
|
|
@ -122,6 +122,16 @@ android {
|
||||||
sourceCompatibility(androidSourceCompatibility)
|
sourceCompatibility(androidSourceCompatibility)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buildTypes {
|
||||||
|
all {
|
||||||
|
externalNativeBuild {
|
||||||
|
ndkBuild {
|
||||||
|
arguments += "NDK_OUT=${File(buildDir, ".cxx/$name").absolutePath}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
productFlavors {
|
productFlavors {
|
||||||
all {
|
all {
|
||||||
externalNativeBuild {
|
externalNativeBuild {
|
||||||
|
|
|
||||||
|
|
@ -19,11 +19,10 @@ LOCAL_LDLIBS := -llog
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
|
||||||
$(LOCAL_PATH)/api/config.cpp : FORCE
|
$(LOCAL_PATH)/api/config.cpp : FORCE
|
||||||
$(file > $@,#include "config.h")
|
$(file > $@,namespace lspd {)
|
||||||
$(file >> $@,namespace lspd {)
|
$(file >> $@,extern const int versionCode = ${VERSION_CODE};)
|
||||||
$(file >> $@,const int versionCode = ${VERSION_CODE};)
|
$(file >> $@,extern const int apiVersion = ${API_VERSION};)
|
||||||
$(file >> $@,const int apiVersion = ${API_VERSION};)
|
$(file >> $@,extern const char* const versionName = "${VERSION_NAME}";)
|
||||||
$(file >> $@,const char* const versionName = "${VERSION_NAME}";)
|
$(file >> $@,extern const char* const moduleName = "${MODULE_NAME}";)
|
||||||
$(file >> $@,const char* const moduleName = "${MODULE_NAME}";)
|
|
||||||
$(file >> $@,})
|
$(file >> $@,})
|
||||||
FORCE: ;
|
FORCE: ;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue