Skip to content

Commit

Permalink
merge in wf yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrettSJohnson committed May 11, 2024
1 parent 6361421 commit 6865906
Showing 1 changed file with 83 additions and 1 deletion.
84 changes: 83 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on: [push, pull_request]

jobs:
build:
build-Linux:

runs-on: ubuntu-22.04

Expand Down Expand Up @@ -50,3 +50,85 @@ jobs:
- name: Test
run: |
./install-prefix/bin/pymol -ckqy testing/testing.py --run all
build-Windows:

runs-on: windows-latest

env:
CONDA_ROOT: ${{github.workspace}}\..\tmp\mambaforge
MAMBAFORGE_EXEC: ${{github.workspace}}\..\tmp\mambaforge.exe

steps:
- uses: actions/[email protected]
- name: Download miniconda
shell: cmd
run: |-
if not exist %CONDA_ROOT% mkdir %CONDA_ROOT%
curl -L -o %MAMBAFORGE_EXEC% https://github.com/conda-forge/miniforge/releases/download/24.3.0-0/Mambaforge-24.3.0-0-Windows-x86_64.exe
start /wait %MAMBAFORGE_EXEC% /S /D=%CONDA_ROOT%
- name: Set up Miniconda
shell: cmd
run: |-
CALL %CONDA_ROOT%\\Scripts\\activate.bat
conda install -y -c conda-forge -c schrodinger python cmake libpng freetype pyqt glew libxml2 numpy catch2=2.13.3 glm libnetcdf collada2gltf pytest
- name: Conda info
shell: cmd
run: |-
CALL %CONDA_ROOT%\\Scripts\\activate.bat
conda info
- name: Get additional sources
shell: cmd
run: |
git clone --depth 1 https://github.com/rcsb/mmtf-cpp.git
cp -R mmtf-cpp/include/mmtf* include/
- name: Build PyMOL
shell: cmd
run: |
CALL %CONDA_ROOT%\\Scripts\\activate.bat
python setup.py --testing install --prefix=install-prefix
- name: Test
shell: cmd
run: |
CALL %CONDA_ROOT%\\Scripts\\activate.bat
install-prefix\\Scripts\\pymol.bat -ckqy testing\\testing.py --run all
build-MacOS:

runs-on: macos-latest

env:
CONDA_ROOT: "/tmp/miniconda"
MAMBAFORGE_EXEC: ${{github.workspace}}\..\tmp\mambaforge.exe

steps:
- uses: actions/[email protected]
- name: Set up Miniconda and Build
run: |-
curl -L -o $CONDA_ROOT.sh https://github.com/conda-forge/miniforge/releases/download/24.3.0-0/Mambaforge-MacOSX-x86_64.sh
bash $CONDA_ROOT.sh -b -p $CONDA_ROOT
export PATH="$CONDA_ROOT/bin:$PATH"
conda config --set quiet yes
conda install -y -c conda-forge -c schrodinger python cmake libpng freetype pyqt glew libxml2 numpy catch2=2.13.3 glm libnetcdf collada2gltf pytest
conda info
- name: Get additional sources
run: |
git clone --depth 1 https://github.com/rcsb/mmtf-cpp.git
cp -R mmtf-cpp/include/mmtf* include/
- name: Build PyMOL
run: |-
export MACOSX_DEPLOYMENT_TARGET=12.0
export PATH="$CONDA_ROOT/bin:$PATH"
python setup.py install --prefix=install-prefix
- name: Test
run: |-
export PATH="$CONDA_ROOT/bin:$PATH"
./install-prefix/bin/pymol -ckqy testing/testing.py --run all

0 comments on commit 6865906

Please sign in to comment.