Skip to content

Commit

Permalink
set shell for conda to work in gh action. updated version in package.…
Browse files Browse the repository at this point in the history
…json
  • Loading branch information
iishiishii committed Oct 21, 2024
1 parent 7b36835 commit 4b5bdcf
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 7 deletions.
49 changes: 43 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,63 @@ jobs:
strategy:
matrix:
cfg:
- { platform: linux, platform_name: Linux, os: ubuntu-latest }
- { platform: mac, platform_name: macOS, os: macos-12 }
- { platform: win, platform_name: Windows, os: windows-latest }
- {
platform: linux-64,
platform_name: Linux x64,
os: ubuntu-latest,
build_platform: linux-64,
conda_platform: linux-64,
}
- {
platform: osx-64,
platform_name: macOS x64,
os: macos-latest,
build_platform: osx-64,
conda_platform: osx-64,
}
- {
platform: osx-arm64,
platform_name: macOS arm64,
os: macos-latest,
build_platform: osx-64,
conda_platform: osx-arm64,
}
- {
platform: win-64,
platform_name: Windows x64,
os: windows-latest,
build_platform: win-64,
conda_platform: win-64,
}

name: '${{ matrix.cfg.platform_name }} installer'
runs-on: ${{ matrix.cfg.os }}
defaults:
run:
# needed for conda to work
shell: bash -el {0}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
auto-activate-base: true
activate-environment: ''
channels: conda-forge
- run: conda install -c conda-forge conda=22.11.1 python=3.10 -y

- name: Install node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '14.x'
node-version: '20.x'
cache: 'yarn'

- name: Install dependencies
# pin Pillow version to prevent Windows build errors
run: |
npm install --global yarn --prefer-offline
conda install -c conda-forge constructor Pillow=9.3.0
yarn install
- name: Check JupyterLab version match
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "neurodeskapp",
"jlab_version": "4.0.0-1",
"version": "1.6.0",
"version": "1.6.1",
"description": "Neurodesk App",
"main": "./build/out/main/main.js",
"scripts": {
Expand Down

0 comments on commit 4b5bdcf

Please sign in to comment.