21 Commits

Author SHA1 Message Date
Bambooin
49f353e55c chore: echo clang-format version 2026-08-30 12:57:51 +08:00
Bambooin
4b64f26461 docs: add SPDX license header with reuse 2024-04-25 19:23:46 +08:00
WhiredPlanck
8490e0cc32 build: remove unneeded scripts 2024-01-16 21:05:39 +08:00
Bambooin
62b556fff1 chore: fix typo in cache hash script 2023-12-25 09:44:15 +08:00
Bambooin
52510768b7 chore: remove obsolete change log script 2023-11-24 18:56:43 +08:00
wxyzh
6f9203d1a2 fix: set output of checksum 2023-04-03 20:42:22 +08:00
wxyzh
37a762af89 chore(ci): replace cache check file
Deprecated "set-output" command
Modify filename to build.gradle.kts
2023-04-02 09:02:28 +08:00
Bambooin
8f895bcdf7 chore: use default clang format 2023-03-15 20:55:55 +08:00
Bambooin
b12dddb810 ci: install clang-format package 2023-03-14 23:06:22 +08:00
Bambooin
b37096187b chore: add clang format helper tool 2023-03-14 22:28:38 +08:00
WhiredPlanck
0874974472 ci: not to require capnproto dependency anymore
The upstream has dropped it already, and we also remove the submodule at 0afc710c.
2022-11-12 23:15:58 +08:00
Bambooin
13a9e8cd44 fix: use more secure SHA-2 2021-12-07 21:27:10 +08:00
Bambooin
25f7301455 chore(ci): use SHA-1 algorithm for cache key is enough
before:
time ./script/cache-hash.sh
::set-output name=hash::2a034207cf5c6e743ea88e9c23effa153e23a0a4

real	0m0.378s
user	0m0.172s
sys	0m0.155s

after:
time ./script/cache-hash.sh
::set-output name=hash::23d72c6b1dbeb3a8022c9b1c09a4e85cc6afa58d

real	0m0.360s
user	0m0.163s
sys	0m0.146s
2021-12-07 20:10:05 +08:00
Bambooin
4cb5505053 fix(ci): extract essential elements for cache hit
Only some elements of `app/buid.gradle` is jni relative, so extract it

The commit of this should hit jni cache, but it's missing:
61eee60cbe
2021-12-07 20:10:05 +08:00
Bambooin
f87ac74ae6 feat: enable manually trigger jni build with trick 2021-12-02 20:15:33 +08:00
Bambooin
bcf37bc678 chore(ci): switch to submodule source code 2021-11-21 19:00:23 +08:00
Bambooin
4c231a9ecc chore: upgrade capnproto to 0.9.1
1. switch to official upstream repo
2. upgrade capnproto to 0.9.1
3. install capnproto from source
2021-11-21 13:46:51 +08:00
Bambooin
af542bf5de chore(ci): skip to install dependency if hit cache
1. extract dependency installation to standalone script
2. ignore installation if we have hit cache

We can save about 47s of ci time
2021-11-21 00:02:21 +08:00
iovxw
8c673fb943
chore(CI): add app/build.gradle to the JNI cache hash 2021-11-18 18:28:06 +08:00
iovxw
27c2198cd4
chore(CI): move cache-hash.sh to script dir 2021-11-18 18:18:27 +08:00
Bambooin
0c588c11aa ci: add auto release action 2021-09-02 18:21:53 +08:00