fix mac-os dependency #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy installers | |
on: | |
push: | |
branches: | |
- master | |
- v0.4 | |
paths-ignore: | |
# - '.github/**' | |
- 'readme.md' | |
- '*.ipynb' | |
# - 'Fiji.app/**' | |
# - '**' | |
# pull_request: | |
# branches: | |
# - master | |
jobs: | |
Build-Windows: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token. | |
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. | |
- name: Setup conda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
channels: conda-forge, anaconda | |
channel-priority: true | |
mamba-version: "*" | |
activate-environment: cz | |
- name: Install dependencies | |
run: | | |
mamba install -n cz -c conda-forge python numpy caiman pyimagej openjdk=8 seaborn pysimplegui | |
mamba install -n cz -y --no-channel-priority -c https://marcelotduarte.github.io/packages/conda cx_Freeze | |
- name: build installer Windows | |
shell: powershell | |
run: | | |
mkdir cache | |
python setup.py bdist_msi | |
- name: test | |
shell: powershell | |
run: | | |
dir dist | |
# - name: Release | |
# run: | | |
# git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
# git config --local user.name "github-actions[bot]" | |
# git checkout distribution | |
# mv -Path dist/install.msi -Destination install.msi -Force | |
# Remove-Item -Path dist -Recurse | |
# Remove-Item -Path build -Recurse | |
# git lfs install | |
# git lfs track install.msi | |
# git add .gitattributes | |
# git add install.msi | |
# git commit -m "Pushing new Windows installer" | |
# - name: Push changes | |
# uses: ad-m/github-push-action@master | |
# with: | |
# force: true | |
# branch: distribution | |
build-linux: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token. | |
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. | |
- name: Setup conda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
mamba-version: "*" | |
channels: conda-forge, anaconda | |
auto-activate-base: false | |
activate-environment: cz | |
environment-file: envs/cz.yaml | |
- name: Install cx_Freeze | |
run: | | |
mamba install -n cz -y --no-channel-priority -c https://marcelotduarte.github.io/packages/conda cx_Freeze | |
- name: Build | |
run: | | |
which python | |
mkdir cache | |
python setup.py bdist_appimage # CalciumZero-0.1-x86_64.AppImage | |
- name: Release | |
run: | | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git checkout distribution | |
mv dist/CalciumZero-0.1-x86_64.AppImage CalciumZero-0.1-x86_64.AppImage | |
rm -rf dist build | |
git lfs install | |
git lfs track CalciumZero-0.1-x86_64.AppImage | |
git add .gitattributes | |
git add CalciumZero-0.1-x86_64.AppImage | |
git commit -m "Pushing new Linux AppImage" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
force: true | |
branch: distribution | |
Build-MacOS: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token. | |
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. | |
- name: Setup conda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
channels: conda-forge, defaults | |
channel-priority: true | |
mamba-version: "*" | |
activate-environment: cz | |
- name: Install dependencies | |
run: | | |
mamba install -n cz -c conda-forge numpy=1.21 caiman pyimagej openjdk=8 seaborn pysimplegui | |
mamba install -n cz -y --no-channel-priority -c https://marcelotduarte.github.io/packages/conda cx_Freeze | |
- name: build disk file MacOS | |
shell: bash -l {0} | |
run: | | |
mkdir cache | |
python setup.py bdist_dmg | |
- name: test | |
shell: bash -l {0} | |
run: | | |
ls build | |
# - name: Commit files | |
# run: | | |
# git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
# git config --local user.name "github-actions[bot]" | |
# git checkout distribution | |
# mv dist/install.dmg install.dmg | |
# rm -r dist | |
# rm -r build | |
# git lfs install | |
# git lfs track install.dmg | |
# git add install.dmg | |
# git add .gitattributes | |
# git commit -m "Pushing new MacOS installer" | |
# - name: Push changes | |
# uses: ad-m/github-push-action@master | |
# with: | |
# force: true | |
# branch: distribution |