Skip to content

Commit

Permalink
Merge pull request #764 from NeurodataWithoutBorders/rly-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Apr 25, 2024
2 parents ae3d20d + 6f67d8d commit a411e2f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/Build-and-deploy-mac.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Mac Release
run-name: ${{ github.actor }} is building a MAC release for NWB GUIDE
# NOTE: even though the runner is an arm64 mac, both x64 and arm64 releases will be made

on:
workflow_dispatch:
Expand All @@ -22,7 +23,7 @@ jobs:
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: nwb-guide
environment-file: environments/environment-MAC.yml
environment-file: environments/environment-MAC-arm64.yml
auto-activate-base: false

- uses: actions/setup-node@v3
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/pyflask-build-and-dist-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@ jobs:
# prefix: /usr/share/miniconda3/envs/nwb-guide

- python-version: "3.9"
os: macos-latest
label: environments/environment-Mac.yml
os: macos-latest # Mac arm64 runner
label: environments/environment-MAC-arm64.yml
prefix: /Users/runner/miniconda3/envs/nwb-guide

- python-version: "3.9"
os: macos-13 # Mac x64 runner
label: environments/environment-MAC.yml
prefix: /Users/runner/miniconda3/envs/nwb-guide

- python-version: "3.9"
Expand All @@ -45,6 +50,9 @@ jobs:
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow --tags

- name: Printout architecture
run: uname -m

# see https://github.com/conda-incubator/setup-miniconda#caching-environments
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v3
Expand Down Expand Up @@ -81,7 +89,7 @@ jobs:
- run: npm ci --verbose

# fix for macos build
- if: matrix.os == 'macos-latest'
- if: matrix.os == 'macos-latest' || matrix.os == 'macos-13'
run: rm -f /Users/runner/miniconda3/envs/nwb-guide/lib/python3.9/site-packages/sonpy/linux/sonpy.so

- name: Build PyFlask distribution
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/testing-live-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ jobs:
- os: ubuntu-latest
label: environments/environment-Linux.yml

- os: macos-latest
label: environments/environment-Mac.yml
- os: macos-latest # Mac arm64 runner
label: environments/environment-MAC-arm64.yml

- os: macos-13 # Mac x64 runner
label: environments/environment-MAC.yml

- os: windows-latest
label: environments/environment-Windows.yml
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ jobs:
- os: ubuntu-latest
label: environments/environment-Linux.yml

- os: macos-latest
label: environments/environment-Mac.yml
- os: macos-latest # Mac arm64 runner
label: environments/environment-MAC-arm64.yml

- os: macos-13 # Mac x64 runner
label: environments/environment-MAC.yml

- os: windows-latest
label: environments/environment-Windows.yml
Expand Down

0 comments on commit a411e2f

Please sign in to comment.