【发布时间】:2020-04-18 16:48:35
【问题描述】:
我有以下错误:
Error: ENOSPC: System limit for number of file watchers reached, watch '/home/ runner/work...
我尝试了所有增加限制的方法(如 ulimit -S -n unlimited、sysctl 等),但似乎不起作用,sudo 也不行
我的网站有很多 gatsby 用来构建最终 .html 的 markdown 文件(约 80k)。
在我的机器上,我当然需要增加文件限制,然后才能工作。但在 github 操作中,我想不出办法。
我的github操作workflow.yml
name: Build
on: [push, repository_dispatch]
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Increase file limit
run: sudo sysctl -w fs.file-max=65536
- name: Debug
run: ulimit -a
- name: Set Node.js
uses: actions/setup-node@master
with:
node-version: 12.x
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
我认为这可能与这个问题有关:https://github.com/gatsbyjs/gatsby/issues/17321
【问题讨论】:
-
请勿发布代码、数据、错误消息等的图片 - 将文本复制或输入到问题中。 How to Ask
标签: node.js github continuous-integration gatsby github-actions