Skip to content

Commit

Permalink
update docker build process
Browse files Browse the repository at this point in the history
  • Loading branch information
sameeul committed Aug 21, 2023
1 parent 696ee6b commit 096534b
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/publish_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 096534b

Please sign in to comment.