Skip to content

Commit

Permalink
Update continuous_integration.yml
Browse files Browse the repository at this point in the history
consolidate builds on ci
  • Loading branch information
aymanhab authored Oct 29, 2024
1 parent ad3b333 commit be68fb0
Showing 1 changed file with 4 additions and 83 deletions.
87 changes: 4 additions & 83 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,41 +40,8 @@ jobs:
- name: upload artifact
uses: actions/upload-artifact@v2
with:
name: win64-opensim-4.5.1-py310np121.tar.bz2
path: C:/Miniconda3/envs/test/conda-bld/win-64/opensim-4.5.1-py310np125.tar.bz2

windows310-moco:
runs-on: windows-latest

steps:
- uses: actions/checkout@v1

- name: Install Python packages
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install numpy
#Need numpy to use SWIG numpy typemaps.
run: python -m pip install numpy==1.25

- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
miniconda-version: "latest"
- name: Install conda-build
run: conda install conda-build

- name: Conda build
run: |
chdir $env:GITHUB_WORKSPACE/opensim-moco
conda build .
- name: upload artifact
uses: actions/upload-artifact@v2
with:
name: win64-opensim-moco-4.5.1-py310np125.tar.bz2
path: C:/Miniconda3/envs/test/conda-bld/win-64/opensim-moco-4.5.1-py310np125.tar.bz2
name: win64-opensim-4.5.99-py310np125.tar.bz2
path: C:/Miniconda3/envs/test/conda-bld/win-64/opensim-4.5.99-py310np125.tar.bz2

ubuntu310:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -119,54 +86,8 @@ jobs:
- name: upload artifact
uses: actions/upload-artifact@v2
with:
name: linux64-opensim-4.5-py310np121.tar.bz2
path: /usr/share/miniconda3/conda-bld/linux-64/opensim-4.5.1-py310np125.tar.bz2

ubuntu310-moco:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: '3.10'
channels: conda-forge,defaults
miniconda-version: "latest"

- name: Install Python packages
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install numpy
#Need numpy to use SWIG numpy typemaps.
run: python3 -m pip install numpy==1.25

- name: Install packages
run: sudo apt-get update && sudo apt-get install --yes build-essential libtool autoconf pkg-config gfortran libopenblas-dev liblapack-dev freeglut3-dev libxi-dev libxmu-dev doxygen python3 python3-dev python3-numpy python3-setuptools

- name: Install SWIG
run: |
mkdir ~/swig-source && cd ~/swig-source
wget https://github.com/swig/swig/archive/refs/tags/v4.1.1.tar.gz
tar xzf v4.1.1.tar.gz && cd swig-4.1.1
sh autogen.sh && ./configure --prefix=$HOME/swig --disable-ccache
make && make -j4 install
- name: Install conda-build
run: conda install conda-build

- name: Conda build
run: |
cd $GITHUB_WORKSPACE/opensim-moco
conda build .
- name: upload artifact
uses: actions/upload-artifact@v2
with:
name: linux64-opensim-moco-4.5.1-py310np125.tar.bz2
path: /usr/share/miniconda3/conda-bld/linux-64/opensim-moco-4.5.1-py310np125.tar.bz2
name: linux64-opensim-4.5.99-py310np125.tar.bz2
path: /usr/share/miniconda3/conda-bld/linux-64/opensim-4.5.99-py310np125.tar.bz2

style:
name: Style
Expand Down

0 comments on commit be68fb0

Please sign in to comment.