diff --git a/.github/workflows/intel_macos_build.yml b/.github/workflows/intel_macos_build.yml new file mode 100644 index 00000000000..1039a1d6938 --- /dev/null +++ b/.github/workflows/intel_macos_build.yml @@ -0,0 +1,59 @@ +name: Intel MacOS +env: + OPENBB_ENABLE_QUICK_EXIT: true + OPENBB_LOG_COLLECTION: false + OPENBB_USE_ION: false + OPENBB_USE_PROMPT_TOOLKIT: false + PIP_DEFAULT_TIMEOUT: 100 + PYTHONNOUSERSITE: 1 +on: + push: + branches: + - 'build_workflow_test' +jobs: + Build: + name: Intel MacOS Build + runs-on: macos-latest + steps: + # Check out repository + - name: Checkout + uses: actions/checkout@v2.4.2 + # Set up caching for conda env so that the workflow runs quickly after the first time + - name: Setup caching for conda packages + uses: actions/cache@v2 + with: + path: ~/conda_pkgs_dir + key: conda-macos-3-8-${{ hashFiles('build/conda/conda-3-8-env-full.yaml') }} + # Set up miniconda using the environment yaml file within the repo + - name: Setup Miniconda + uses: conda-incubator/setup-miniconda@v2 + with: + miniconda-version: "latest" + auto-update-conda: true + channels: conda-forge,defaults + show-channel-urls: true + channel-priority: flexible + environment-file: build/conda/conda-3-8-env-full.yaml + activate-environment: build_env + use-only-tar-bz2: true # Needed for caching some reason + - name: Run Poetry + shell: bash -l {0} + run: poetry install + - name: Install Pyinstaller + shell: bash -l {0} + run: poetry install -E installer + - name: Install Prediction Modules + shell: bash -l {0} + run: poetry install -E prediction + - name: Run Build Shell Script + shell: bash -l {0} + continue-on-error: true # this is here because there is a known error in create-dmg that cannot unmount disks if they are too large + run: build/pyinstaller/build4mac.sh + # Saves created artifacts except the icon artifact + - name: Save Build Artifact Folder + uses: actions/upload-artifact@v3 + with: + name: OpenBB Artifact + path: | + DMG/OpenBB\ Terminal/.openbb + DMG/OpenBB\ Terminal/OpenBB\ Terminal