Documentation update #429
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: Post-build checks | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
inputs: | |
debug_enabled: | |
type: boolean | |
description: "Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)" | |
required: false | |
default: false | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# macos-12 provides Intel builds, macos-14 provides M1 builds | |
os: [ubuntu-latest, windows-latest, macos-12, macos-14] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: nanasess/setup-chromedriver@v2 | |
with: | |
chromedriver-version: "126.0.6478.185" | |
- 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: 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 | |
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 | |
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 | |
run: | | |
corepack enable | |
./build_deps.sh | |
yarn install | |
yarn | |
yarn build | |
yarn package | |
# disabled: docker is very slow to install on macos-12, is unsupported on | |
# macos-14, is available on windows and already tested under ubuntu | |
- name: install docker MacOS (Intel chips) | |
shell: bash -el {0} # required to sustain the conda environment | |
if: false | |
run: | | |
if [ "$RUNNER_OS" == "macOS" ] && [ "$RUNNER_ARCH" == "X64" ]; then | |
brew install docker | |
colima start | |
fi | |
# Enable tmate debugging of manually-triggered workflows if the input option was provided | |
- name: tmate debugging | |
uses: mxschmitt/action-tmate@v3 | |
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} | |
- name: postbuild-tests | |
working-directory: ./electron-app | |
shell: bash -el {0} # required to sustain the conda environment | |
run: | | |
./run_postbuild_tests.sh |