Skip to content

Commit

Permalink
Update continuous-integration.yml
Browse files Browse the repository at this point in the history
Remove linux from ci for now until we upgrade or find netbeans installer for this platform
  • Loading branch information
aymanhab authored Mar 18, 2021
1 parent a2dfdaa commit 5c1bd75
Showing 1 changed file with 0 additions and 110 deletions.
110 changes: 0 additions & 110 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,113 +275,3 @@ jobs:
name: OpenSim-${{ steps.build-gui.outputs.version }}-mac
path: OpenSim-${{ steps.build-gui.outputs.version }}.pkg

ubuntu:
name: Ubuntu

runs-on: ubuntu-18.04

steps:

- name: Checkout opensim-gui
uses: actions/checkout@v2

- name: Checkout opensim-core master
uses: actions/checkout@v2
with:
repository: opensim-org/opensim-core
path: 'opensim-core'

- name: Install packages
run: sudo apt-get update && sudo apt-get install --yes liblapack-dev freeglut3-dev libxi-dev libxmu-dev doxygen python3 python3-dev python3-numpy python3-setuptools swig

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Cache Netbeans
id: cache-netbeans
uses: actions/cache@v1
with:
path: ~/netbeans-8.2
key: netbeans-8.2

- name: Download and Install Netbeans
if: steps.cache-netbeans.outputs.cache-hit != 'true'
run: |
wget -q https://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-javase-linux.sh
chmod 755 netbeans-8.2-javase-linux.sh
./netbeans-8.2-javase-linux.sh --silent
ls $HOME/netbeans-8.2
- name: Cache opensim-core-dependencies
id: cache-dependencies
uses: actions/cache@v1
with:
path: ~/opensim_dependencies_install
# Every time a cache is created, it's stored with this key.
# In subsequent runs, if the key matches the key of an existing cache,
# then the cache is used. We chose for this key to depend on the
# operating system and a hash of the hashes of all files in the
# dependencies directory (non-recursive).
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/caching-dependencies-to-speed-up-workflows#matching-a-cache-key
key: ${{ runner.os }}-dependencies-${{ hashFiles('opensim-core/dependencies/*') }}

- name: Build opensim-core-dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: |
mkdir build_deps
cd build_deps
cmake ../opensim-core/dependencies -DSUPERBUILD_ezc3d:BOOL=on -DCMAKE_INSTALL_PREFIX=~/opensim_dependencies_install
cmake . -LAH
cmake --build . --config Release
- name: Obtain opensim-core commit
id: opensim-core-commit
run: |
cd opensim-core
opensim_core_commit=$(git rev-parse HEAD)
echo "::set-output name=hash::$opensim_core_commit"
- name: Cache opensim-core
id: cache-core
uses: actions/cache@v1
with:
path: ~/opensim-core-install
key: ${{ runner.os }}-${{ steps.opensim-core-commit.outputs.hash }}

- name: Build opensim-core
if: steps.cache-core.outputs.cache-hit != 'true'
run: |
mkdir build_core
cd build_core
cmake ../opensim-core -DOPENSIM_DEPENDENCIES_DIR=~/opensim_dependencies_install -DBUILD_JAVA_WRAPPING=on -DBUILD_PYTHON_WRAPPING=on -DOPENSIM_C3D_PARSER=ezc3d -DBUILD_TESTING=off -DCMAKE_INSTALL_PREFIX=~/opensim-core-install -DOPENSIM_INSTALL_UNIX_FHS=OFF
cmake . -LAH
cmake --build . --config Release
cmake --install .
- name: Update submodules
run: git submodule update --init --recursive -- opensim-models opensim-visualizer Gui/opensim/threejs

- name: Build GUI
id: build-gui
run: |
mkdir build
cd build
cmake ../ -DCMAKE_PREFIX_PATH=~/opensim-core-install -DANT_ARGS="-Dnbplatform.default.netbeans.dest.dir=$HOME/netbeans-8.2;-Dnbplatform.default.harness.dir=$HOME/netbeans-8.2/harness"
make CopyOpenSimCore
make PrepareInstaller
# Read the value of the cache variable storing the GUI build version.
VERSION=`cmake -L . | grep OPENSIMGUI_BUILD_VERSION | cut -d "=" -f2`
echo $VERSION
echo "name=VERSION::$VERSION" >> $GITHUB_ENV
echo "::set-output name=version::$VERSION"
cd $GITHUB_WORKSPACE
ls Gui/opensim/dist
mv Gui/opensim/dist/OpenSim-$VERSION.tar.gz $GITHUB_WORKSPACE
- name: Upload GUI installer
uses: actions/upload-artifact@v2
with:
name: OpenSim-${{ steps.build-gui.outputs.version }}-linux
path: OpenSim-${{ steps.build-gui.outputs.version }}.tar.gz

0 comments on commit 5c1bd75

Please sign in to comment.