Skip to content

Commit

Permalink
Update nightly and publish workflows to support action-based conda in…
Browse files Browse the repository at this point in the history
…stall
  • Loading branch information
jsbrittain committed Sep 13, 2024
1 parent c7af444 commit 0bdfafd
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/publish_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,27 @@ jobs:
- uses: nanasess/setup-chromedriver@v2
with:
chromedriver-version: "126.0.6478.185"
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
activate-environment: build
miniforge-version: latest
auto-update-conda: true
auto-activate-base: true
python-version: 3.12
use-mamba: true
python-version: "3.12"
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v2
- name: install MacOS (M1) build dependencies
shell: bash -el {0} # required to sustain the conda environment
shell: bash
run: |
if [ "$RUNNER_OS" == "macOS" ] && [ "$RUNNER_ARCH" == "ARM64" ]; then
brew install pango
fi
# setuptools needs to be available globally for the yarn build script
- name: Install setuptools
shell: bash -el {0} # required to sustain the conda environment
shell: bash
run: |
python -m pip install --upgrade pip
python -m pip install setuptools
- name: build
working-directory: ./electron-app
shell: bash -el {0} # required to sustain the conda environment
shell: bash
run: |
corepack enable
./build_deps.sh
Expand All @@ -54,9 +49,22 @@ jobs:
- name: tmate debugging
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
# Install conda for post-build tests
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: build
miniforge-version: latest
auto-update-conda: true
auto-activate-base: true
python-version: 3.12
use-mamba: true
- name: postbuild-tests
working-directory: ./electron-app
shell: bash -el {0} # required to sustain the conda environment
# 'yarn package' is only run to allow build_testsuite.sh to run before
# the package is pushed for publishing ('yarn run publish' builds and
# publishes in one step)
run: |
yarn package
./run_postbuild_tests.sh
Expand All @@ -73,7 +81,7 @@ jobs:
MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_DEV_ID_APP_CERTIFICATE_PWD }}
MACOS_CERTIFICATE_NAME: ${{ secrets.MACOS_DEV_ID_APP_CERTIFICATE_NAME }}
MACOS_CI_KEYCHAIN_PWD: ${{ secrets.MACOS_CI_KEYCHAIN_PWD }}
shell: bash -el {0} # required to sustain the conda environment
shell: bash
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
# Convert base64-encoded certificate from secrets into a regular .p12 file
Expand Down

0 comments on commit 0bdfafd

Please sign in to comment.