Unverified Commit f4422fab authored by Chen Xin's avatar Chen Xin Committed by GitHub
Browse files

free runner disk (#552)

* free runner disk

* limit cpu

* docker.yml

* keep swap

* keep swap
parent 0b861c48
...@@ -24,19 +24,18 @@ jobs: ...@@ -24,19 +24,18 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Check disk space - name: Free disk space
run: | uses: jlumbroso/free-disk-space@main
df -h with:
ls /opt/hostedtoolcache # This might remove tools that are actually needed, if set to "true" but frees about 6 GB
rm -rf ${GITHUB_WORKSPACE}/.git tool-cache: false
rm -rf /opt/hostedtoolcache/go docker-images: false
rm -rf /opt/hostedtoolcache/node # All of these default to true, but feel free to set to "false" if necessary for your workflow
rm -rf /opt/hostedtoolcache/Ruby android: true
rm -rf /opt/hostedtoolcache/CodeQL dotnet: true
cat /proc/cpuinfo | grep -ic proc haskell: true
free large-packages: true
df -h swap-storage: false
df . -h
- name: Get docker info - name: Get docker info
run: | run: |
docker info docker info
......
...@@ -27,14 +27,30 @@ permissions: ...@@ -27,14 +27,30 @@ permissions:
jobs: jobs:
cuda-118: cuda-118:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: openmmlab/lmdeploy-builder:cuda11.8
steps: steps:
- name: Free disk space
uses: jlumbroso/free-disk-space@main
with:
# This might remove tools that are actually needed, if set to "true" but frees about 6 GB
tool-cache: false
docker-images: false
# All of these default to true, but feel free to set to "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: false
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Build - name: Build
run: | uses: addnab/docker-run-action@v3
source /opt/conda/bin/activate with:
conda activate py38 image: openmmlab/lmdeploy-builder:cuda11.8
mkdir build && cd build options: -v ${{ github.workspace }}:/work --cpus=1.8
bash ../generate.sh run: |
make -j$(nproc) && make install cd /work
source /opt/conda/bin/activate
conda activate py38
mkdir build && cd build
bash ../generate.sh
make -j$(nproc) && make install
...@@ -21,6 +21,18 @@ jobs: ...@@ -21,6 +21,18 @@ jobs:
DOCKER_TAG: cuda11.8 DOCKER_TAG: cuda11.8
OUTPUT_FOLDER: cuda11.8_dist OUTPUT_FOLDER: cuda11.8_dist
steps: steps:
- name: Free disk space
uses: jlumbroso/free-disk-space@main
with:
# This might remove tools that are actually needed, if set to "true" but frees about 6 GB
tool-cache: false
docker-images: false
# All of these default to true, but feel free to set to "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: false
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Build - name: Build
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment