Skip to content

Build

Build #9

Workflow file for this run

on: [workflow_dispatch, pull_request]
name: Build
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [macos-14-large, macos-26]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
# This doesn't seem to be needed
- name: Install ActiveTcl
if: matrix.os != 'macos-26'
run: |
wget "http://faculty.washington.edu/gallegoj/ActiveTcl-8.5.18.0.298892-macosx10.5-i386-x86_64-threaded.dmg" -P /Users/runner
hdiutil attach "/Users/runner/ActiveTcl-8.5.18.0.298892-macosx10.5-i386-x86_64-threaded.dmg"
sudo installer -pkg /Volumes/ActiveTcl-8.5/ActiveTcl-8.5.pkg -target /
hash -r
- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: false
- name: Install dependencies
run: |
git clone --depth 1 --single-branch --branch python2 https://github.com/sdss/opscore.git ../opscore
git clone --depth 1 --single-branch --branch sdss5 https://github.com/sdss/actorkeys.git ../actorkeys
git clone --depth 1 --single-branch --branch master https://github.com/r-owen/RO.git ../RO
- name: Restore environment
run: |
conda create --name STUI --file BuildForMac/environment.txt
conda activate STUI
pip install -U pip wheel setuptools
pip install typing-extensions
pip install numpy==1.10.1
pip install py2app==0.22 matplotlib==2.2.5 pyfits==3.5 twisted==20.3.0 pygame==1.9.6
pip install modulegraph==0.19.2
shell: bash -l {0}
# - name: Build Imaging
# run: |
# conda activate STUI
# wget https://src.fedoraproject.org/repo/pkgs/python-imaging/Imaging-1.1.7.tar.gz/fc14a54e1ce02a0225be8854bfba478e/Imaging-1.1.7.tar.gz
# tar xvf Imaging-1.1.7.tar.gz
# python Imaging-1.1.7/setup.py install
# rm -Rf Imaging*
# shell: bash -l {0}
- name: List environment
run: |
conda activate STUI
echo "pip list"
pip list
echo "conda list"
conda list
shell: bash -l {0}
- name: Build STUI
shell: bash -l {0}
run: |
conda activate STUI
python releaseNewVersion.py
env:
# DYLD_FRAMEWORK_PATH: /Library/Frameworks/Tk.framework:/Library/Frameworks/Tcl.framework:/Library/Frameworks
PYTHONPATH: ${{github.workspace}}:${{github.workspace}}/../RO/python:${{github.workspace}}/../opscore/python:${{github.workspace}}/../actorkeys/python:${{github.workspace}}/BuildForMac/assets/external/python:${{github.workspace}}/BuildForMac/assets/plc/python
RO_DIR: ${{github.workspace}}/../RO
OPSCORE_DIR: ${{github.workspace}}/../opscore
ACTORKEYS_DIR: ${{github.workspace}}/../actorkeys
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
with:
name: STUI_${{ matrix.os }}
path: /Users/runner/STUI_*_Source/BuildForMac/dist/STUI_*_Mac.dmg