diff --git a/.github/workflows/mcad-CI.yml b/.github/workflows/mcad-CI.yml index c18a3f15..c022da7e 100644 --- a/.github/workflows/mcad-CI.yml +++ b/.github/workflows/mcad-CI.yml @@ -18,10 +18,12 @@ jobs: CPUAccounting=true CPUQuota=33.33% EOF - new_content='{ "exec-opts": ["native.cgroupdriver=cgroupfs"], "cgroup-parent": "slice.conf" }' + new_content='{ "exec-opts": ["native.cgroupdriver=cgroupfs"], "cgroup-parent": "/slice.conf" }' sudo sed -i 's/{ "exec-opts": \["native.cgroupdriver=cgroupfs"\], "cgroup-parent": "\/actions_job" }/'"$new_content"'/' /etc/docker/daemon.json cat /etc/docker/daemon.json sudo systemctl restart docker + sleep 10 + docker info | grep CPU - name: checkout code uses: actions/checkout@v3 with: