From fb42b195ff72b750cb403f94576f4e73deddefcf Mon Sep 17 00:00:00 2001 From: sameeul Date: Mon, 21 Aug 2023 13:38:16 -0400 Subject: [PATCH] clean diskspace --- .github/workflows/publish_docker.yml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/publish_docker.yml b/.github/workflows/publish_docker.yml index b9ee7858..93818790 100644 --- a/.github/workflows/publish_docker.yml +++ b/.github/workflows/publish_docker.yml @@ -16,29 +16,22 @@ jobs: shell: bash -l {0} steps: - - uses: actions/checkout@v3 + - name: Create more disk space + run: sudo rm -rf /usr/share/dotnet && sudo rm -rf /opt/ghc && sudo rm -rf "/usr/local/share/boost" && sudo rm -rf "$AGENT_TOOLSDIRECTORY" && sudo df -H - - uses: conda-incubator/setup-miniconda@v2 + - uses: actions/checkout@v3 with: - activate-environment: anaconda-client-env - python-version: 3.8 - channels: conda-forge - auto-activate-base: false + submodules: recursive - - name: Install Conda Dependencies + - name: Run Build Script + working-directory: ${{github.workspace}} run: | - conda install compilers=1.1.1 --file ${{github.workspace}}/ci-utils/envs/conda_cpp.txt --file ${{github.workspace}}/ci-utils/envs/conda_gpu.txt - - - name: Configure CMake - run: cmake -B ${{github.workspace}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_CLI=ON -DUSE_GPU=ON -DUSEARROW=ON -DCMAKE_PREFIX_PATH=$CONDA_PREFIX -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX + bash ci-utils/build_conda.sh ${{github.workspace}} - - name: Build - run: cmake --build ${{github.workspace}} --config ${{env.BUILD_TYPE}} --parallel 2 - - name: Copy 3rd-party libraries to staging directory working-directory: ${{github.workspace}} run: | - bash ci-utils/docker_copy_3rd_party_libs.sh $CONDA_PREFIX + bash ci-utils/docker_copy_3rd_party_libs.sh ${{github.workspace}}/miniconda-for-nyxus/envs/nyxus-3.8 - name: Create Version File run: python setup.py --version| grep -v init > VERSION