Skip to content

Commit

Permalink
github workflow: windows GSL build test
Browse files Browse the repository at this point in the history
  • Loading branch information
subhacom committed Apr 23, 2024
1 parent 8ac5de1 commit 31617f5
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions .github/workflows/pymoose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,41 @@ name: Python package
on: [push]

jobs:
build:
runs-on: ${{ matrix.os }}
# build:
# runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, macos-14]
build_type: [Release]
c_compiler: [clang]
python-version: ["3.12"]
include:
- os: ubuntu-latest
apt: 10
- os: macos-14
brew: 20
steps:
- uses: actions/checkout@v2
- if: ${{ matrix.apt }}
run: sudo apt-get install libhdf5-dev libgsl0-dev
- if: ${{ matrix.brew }}
run: |
brew install gsl
brew install hdf5
- name: Set up Python ${{ matrix.python-version }}
shell: bash
run: |
"${SHELL}" <(curl -L micro.mamba.pm/install.sh)
micromamba self-update
micromamba create -n moose python=${{ matrix.python-version }} graphviz lxml cmake numpy matplotlib vpython hdf5 pytables doxygen -c conda-forge
eval "$(micromamba shell hook --shell bash)"
micromamba activate moose
pip install python-libsbml
pip install pyneuroml
- name: Build
run: |
pip install .
# strategy:
# matrix:
# os: [ubuntu-latest, macos-14]
# build_type: [Release]
# c_compiler: [clang]
# python-version: ["3.12"]
# include:
# - os: ubuntu-latest
# apt: 10
# - os: macos-14
# brew: 20
# steps:
# - uses: actions/checkout@v2
# - if: ${{ matrix.apt }}
# run: sudo apt-get install libhdf5-dev libgsl0-dev
# - if: ${{ matrix.brew }}
# run: |
# brew install gsl
# brew install hdf5
# - name: Set up Python ${{ matrix.python-version }}
# shell: bash
# run: |
# "${SHELL}" <(curl -L micro.mamba.pm/install.sh)
# micromamba self-update
# micromamba create -n moose python=${{ matrix.python-version }} graphviz lxml cmake numpy matplotlib vpython hdf5 pytables doxygen -c conda-forge
# eval "$(micromamba shell hook --shell bash)"
# micromamba activate moose
# pip install python-libsbml
# pip install pyneuroml
# - name: Build
# run: |
# pip install .

winbuild:
name: Windows-build
Expand All @@ -64,7 +64,7 @@ jobs:
- name: BuildGSL
shell: pwsh
run: |
Invoke-Expression ((Invoke-WebRequest -Uri https://github.com/ampl/gsl/archive/refs/tags/20211111.zip).Content)
Invoke-WebRequest -Uri https://github.com/ampl/gsl/archive/refs/tags/20211111.zip -Outfile .\20211111.zip
unzip 20211111.zip
cd gsl-20211111
mkdir build
Expand Down

0 comments on commit 31617f5

Please sign in to comment.