stupidloud / cachewrtbuild Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
你好,小白咨询一下,stupidloud/cachewrtbuild 如果命中输出是 hit=true?
缓存后,post cache会有如下警告:
Post job cleanup.
fatal: ambiguous argument 'tools': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Warning: Command failed: git log --pretty=tformat:"%h" -n1 tools toolchain
fatal: ambiguous argument 'tools': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
我是js彩笔,请求修复
大佬能不能第一次Build失败也备份,备份后第二次就快了,谢谢!
rt
配置:
steps:
- name: Checkout
uses: actions/checkout@master
with:
ref: main
fetch-depth: 0
- name: cache
uses: klever1988/cachewrtbuild@main
with:
ccache: 'true'
log:
fatal: ambiguous argument 'tools': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Error: Command failed: git log --pretty=tformat:"%h" -n1 tools toolchain
fatal: ambiguous argument 'tools': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Run klever1988/cachewrtbuild@main
with:
ccache: true
toolchain: true
skip: true
clean: false
env:
REPO_URL: https://github.com/coolsnowwolf/lede
REPO_BRANCH: master
FEEDS_CONF: feeds.conf.default
CONFIG_FILE: config/x64.config
DIY_P1_SH: diy-part1.sh
DIY_P2_SH: diy-part2.sh
UPLOAD_BIN_DIR: false
UPLOAD_FIRMWARE: true
UPLOAD_COWTRANSFER: false
UPLOAD_WETRANSFER: false
UPLOAD_RELEASE: true
TZ: Asia/Shanghai
fatal: ambiguous argument 'tools': unknown revision or path not in the working tree.
Error: Command failed: git log --pretty=tformat:"%h" -n1 tools toolchain
fatal: ambiguous argument 'tools': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
https://github.com/klever1988/cachewrtbuild/blob/4e49fc2aa43955b2933541b0372f7416f7dac23d/fetch.js#L18-L19
由于 restoreKeys = ['cache-openwrt']
或 restoreKeys = ['cache-openwrt', 'cache-openwrt-<commithash>']
下面再查缓存的时候
https://github.com/klever1988/cachewrtbuild/blob/4e49fc2aa43955b2933541b0372f7416f7dac23d/fetch.js#L40
keyString
包含时间戳,肯定不会命中,所以会用 restoreKeys
依次去查
但是因为缓存的 key = cache-openwrt-<commithash>-<timestamp>
所以 restoreKeys
中的 cache-openwrt
一定会命中缓存
也就是说不管工具链的commithash有没有发生变化,只要缓存存在就一定会命中,那这个还有什么意义呢?
建议将 restoreKeys 只添加一个 restoreKeys = ['cache-openwrt-<commithash>']
这样可以根据工具链的 commithash 去命中缓存
找到缓存后怎么样写入一个变量?如果能写个变量这样在download就判断有没有必要下载tools和toolchain了!另hit这个输出怎么用?谢谢!
请问,如果我想在本地保留缓存,应该保留什么文件呢?我想在本地编译的时候把缓存文件保留起来,然后跟云编译一样,用最新的源码跟插件编译,本地的那些文件应该保留那些文件可以达到保留缓存的效果?
大神现在缓存好象变小了!能不能改存到release中!
Post job cleanup.
cache-openwrt-a2a022b9-1630776622
/usr/bin/tar --posix --use-compress-program zstd -T0 -cf cache.tzst -P -C /home/runner/work/lede-17.01.4-Mod/lede-17.01.4-Mod --files-from manifest.txt
(node:758271) UnhandledPromiseRejectionWarning: Error: Cache service responded with 429 during upload chunk.
at /home/runner/work/_actions/HiGarfield/cachewrtbuild/main/node_modules/@actions/cache/lib/internal/cacheHttpClient.js:149:19
at Generator.next ()
at fulfilled (/home/runner/work/_actions/HiGarfield/cachewrtbuild/main/node_modules/@actions/cache/lib/internal/cacheHttpClient.js:5:58)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(node:758271) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:758271) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
/home/runner/work/_actions/HiGarfield/cachewrtbuild/main/node_modules/@actions/cache/lib/internal/cacheHttpClient.js:180
throw new Error(Cache upload failed because file read failed with ${error.message}
);
^
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read
at ReadStream. (/home/runner/work/_actions/HiGarfield/cachewrtbuild/main/node_modules/@actions/cache/lib/internal/cacheHttpClient.js:180:31)
at ReadStream.emit (events.js:210:5)
at internal/fs/streams.js:167:12
at FSReqCallback.wrapper [as oncomplete] (fs.js:470:5)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: stupidloud/cachewrtbuild@main. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
编译完这个分支,再去编译其他分支的时候缓存就被覆盖了,其他分支本来就编译过,这就浪费了编译时间
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.