Example 5: Custom installer #2135
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: "Example 5: Custom installer" | |
on: | |
pull_request: | |
branches: | |
- "*" | |
push: | |
branches: | |
- "develop" | |
- "main" | |
- "master" | |
schedule: | |
# Note that cronjobs run on master/main by default | |
- cron: "0 0 * * *" | |
concurrency: | |
group: | |
${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
example-5-linux: | |
# prevent cronjobs from running on forks | |
if: | |
(github.event_name == 'schedule' && github.repository == | |
'conda-incubator/setup-miniconda') || (github.event_name != 'schedule') | |
name: Ex5 PyPy Linux Local | |
runs-on: "ubuntu-latest" | |
env: | |
MINIFORGE_URL: https://github.com/conda-forge/miniforge/releases/download/4.9.0-3/Miniforge-pypy3-4.9.0-3-Linux-x86_64.sh | |
defaults: | |
run: | |
shell: bash -el {0} | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
curl -L ${MINIFORGE_URL} > /tmp/some-built-installer-${{ github.run_number }}.sh | |
- uses: ./ | |
with: | |
installer-url: | |
file:///tmp/some-built-installer-${{ github.run_number | |
}}.sh?foo=bar&baz#zzz | |
allow-softlinks: true | |
show-channel-urls: true | |
use-only-tar-bz2: true | |
- run: | | |
conda info | |
conda list | |
conda config --show-sources | |
conda config --show | |
example-5-mac: | |
name: Ex5 PyPy MacOS | |
runs-on: "macos-latest" | |
defaults: | |
run: | |
shell: bash -el {0} | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./ | |
with: | |
installer-url: https://github.com/conda-forge/miniforge/releases/download/4.11.0-0/Miniforge-pypy3-4.11.0-0-MacOSX-x86_64.sh?foo=bar&baz | |
allow-softlinks: true | |
show-channel-urls: true | |
use-only-tar-bz2: true | |
activate-environment: "" | |
- run: | | |
conda info | |
conda list | |
conda config --show-sources | |
conda config --show | |
example-5-win: | |
name: Ex5 Windows | |
runs-on: "windows-latest" | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./ | |
with: | |
installer-url: | |
https://github.com/conda-forge/miniforge/releases/download/4.9.0-3/Miniforge3-4.9.0-0-Windows-x86_64.exe?foo=bar&baz#${{ | |
github.run_number }} | |
show-channel-urls: true | |
use-only-tar-bz2: true | |
activate-environment: "" | |
- shell: bash -el {0} | |
run: | | |
conda info | |
conda list | |
conda config --show-sources | |
conda config --show |