diff --git a/.github/workflows/publish_build.yml b/.github/workflows/publish_build.yml index b418220..10b7998 100644 --- a/.github/workflows/publish_build.yml +++ b/.github/workflows/publish_build.yml @@ -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 @@ -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 @@ -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