Skip to content

Commit f51f494

Browse files
Merge pull request #35 from jeromekelleher/add-install-slim
Add install-slim option to docs
2 parents a05fc3b + 8c9a0a9 commit f51f494

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/actions/build-docs/action.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ inputs:
2929
required: false
3030
default: ''
3131

32+
install-slim:
33+
description: 'Whether to install SLiM'
34+
required: false
35+
default: false
36+
3237
runs:
3338
using: composite
3439
steps:
@@ -37,6 +42,20 @@ runs:
3742
shell: bash
3843
run: sudo apt-get update && sudo apt-get install -y ${{ inputs.additional-apt-packages }}
3944

45+
- name: Set up micromamba
46+
if: {{ inputs.install-slim }}
47+
uses: mamba-org/setup-micromamba@v2.0.4
48+
49+
- name: Install SLiM
50+
if: {{ inputs.install-slim }}
51+
run: |
52+
micromamba install -n base -y slim
53+
echo "$MAMBA_ROOT_PREFIX/bin" >> $GITHUB_PATH
54+
55+
- name: Verify SLiM
56+
if: {{ inputs.install-slim }}
57+
run: slim -v
58+
4059
- name: Install uv
4160
uses: astral-sh/setup-uv@v6
4261
with:

.github/workflows/docs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ on:
2929
type: string
3030
default: ''
3131

32+
install-slim:
33+
description: 'Whether to install SLiM'
34+
required: false
35+
default: false
36+
3237
jobs:
3338
Docs:
3439
name: Build docs
@@ -48,6 +53,7 @@ jobs:
4853
pyproject-directory: ${{ inputs.pyproject-directory }}
4954
additional-apt-packages: ${{ inputs.additional-apt-packages }}
5055
pre-build-command: ${{ inputs.pre-build-command }}
56+
install-slim: ${{ inputs.install-slim }}
5157

5258
- name: Trigger tskit-site rebuild
5359
if: github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)