Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
JCGoran committed Nov 8, 2024
1 parent abdd2fc commit 835e3ad
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build MacOS Wheels
name: Build NEURON Python wheels

on:
schedule:
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
strategy:
matrix:
os: [macos-14]
python-version: ['3.10']
python-version: ['3.10'] # TODO update before making as ready

steps:
- name: Check out code
Expand Down Expand Up @@ -81,14 +81,14 @@ jobs:
sudo mkdir -p /opt/nrnwheel/$(uname -m)
sudo bash packaging/python/build_static_readline_osx.bash
- name: Set env based in input
- name: Set env for nightly
if: github.event_name == 'schedule' && startsWith(github.ref, 'refs/heads/master')
run: |
echo "NRN_NIGHTLY_UPLOAD=true" >> $GITHUB_ENV
echo "NRN_RELEASE_UPLOAD=false" >> $GITHUB_ENV
echo "NEURON_NIGHTLY_TAG=-nightly" >> $GITHUB_ENV
- name: Set env based in input for release
- name: Set env for release
if: github.event_name == 'workflow_dispatch'
run: |
echo "NRN_NIGHTLY_UPLOAD=false" >> $GITHUB_ENV
Expand All @@ -115,7 +115,8 @@ jobs:

publish-to-pypi:
name: Publish Python wheels to PyPI
if: (github.event_name == 'schedule' && startsWith(github.ref, 'refs/heads/master')) || github.event_name == 'workflow_dispatch'
# we only run this if it's a nightly upload, or if we are doing a release
if: (github.event_name == 'schedule' && startsWith(github.ref, 'refs/heads/master')) || (github.event_name == 'workflow_dispatch' && github.inputs.upload == 'true')
needs:
- build-test

Expand Down

0 comments on commit 835e3ad

Please sign in to comment.