From 096534baa86729bf416494428a0b218e2889a778 Mon Sep 17 00:00:00 2001 From: sameeul Date: Mon, 21 Aug 2023 13:20:39 -0400 Subject: [PATCH 1/3] update docker build process --- .github/workflows/publish_docker.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish_docker.yml b/.github/workflows/publish_docker.yml index 71d777a8..b9ee7858 100644 --- a/.github/workflows/publish_docker.yml +++ b/.github/workflows/publish_docker.yml @@ -17,18 +17,28 @@ jobs: steps: - uses: actions/checkout@v3 + + - uses: conda-incubator/setup-miniconda@v2 with: - submodules: recursive + activate-environment: anaconda-client-env + python-version: 3.8 + channels: conda-forge + auto-activate-base: false - - name: Run Build Script - working-directory: ${{github.workspace}} + - name: Install Conda Dependencies run: | - bash ci-utils/build_conda.sh ${{github.workspace}} + 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 + - 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 ${{github.workspace}}/miniconda-for-nyxus/envs/nyxus-3.8 + bash ci-utils/docker_copy_3rd_party_libs.sh $CONDA_PREFIX - name: Create Version File run: python setup.py --version| grep -v init > VERSION From fb42b195ff72b750cb403f94576f4e73deddefcf Mon Sep 17 00:00:00 2001 From: sameeul Date: Mon, 21 Aug 2023 13:38:16 -0400 Subject: [PATCH 2/3] 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 From 24fab5917aaf791cb9a5a2d7d98e8982db551abc Mon Sep 17 00:00:00 2001 From: sameeul Date: Mon, 21 Aug 2023 13:40:54 -0400 Subject: [PATCH 3/3] clean diskspace --- .github/workflows/publish_docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_docker.yml b/.github/workflows/publish_docker.yml index 93818790..7a0e6eb2 100644 --- a/.github/workflows/publish_docker.yml +++ b/.github/workflows/publish_docker.yml @@ -16,8 +16,8 @@ jobs: shell: bash -l {0} steps: - - 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 + - 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: actions/checkout@v3 with: