Skip to content

Commit

Permalink
update arm workflow for conda
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian committed Jul 8, 2024
1 parent 1dc09f8 commit c6f49be
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,17 @@ jobs:
with:
python-version: '3.11'

- name: Install Miniconda
shell: bash
run: |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
eval "$($HOME/miniconda/bin/conda shell.bash hook)"
conda init
source ~/.bashrc
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-activate-base: true
activate-environment: ""

- name: Create and activate conda environment
shell: bash
run: |
conda create -n cq python=3.11 -y
source ~/miniconda/etc/profile.d/conda.sh
conda activate cq
conda install mamba -n base -c conda-forge
mamba install -c conda-forge cadquery -y
Expand All @@ -122,13 +120,15 @@ jobs:
- name: Install dependencies
shell: bash
run: |
source ~/miniconda/etc/profile.d/conda.sh
conda activate cq
poetry install
poetry add pyinstaller
- name: Build executable as directory for Apple Silicon macOS
shell: bash
run: |
source ~/miniconda/etc/profile.d/conda.sh
conda activate cq
poetry run pyinstaller --name orion --onedir --add-data "orion_cli/services/*.py:orion_cli/services" orion_cli/cli.py
Expand All @@ -149,6 +149,7 @@ jobs:
path: dist/orion_arm.zip



build-windows:
runs-on: windows-latest

Expand Down

0 comments on commit c6f49be

Please sign in to comment.