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