Ryujinx-Mako/.github/actions/setup-mako/action.yml
2024-01-29 23:01:20 +01:00

33 lines
788 B
YAML

name: 'Setup Mako'
description: 'Setup the environment for Mako'
runs:
using: 'composite'
steps:
- name: Get Mako path
id: path
run: |
echo "mako=$(realpath '${{ github.action_path }}/../../../')" >> $GITHUB_OUTPUT
shell: bash
- uses: actions/setup-python@v5
with:
python-version: '>=3.8'
- name: Ensure pipx is available
run: |
if ! command -v pipx > /dev/null 2>&1; then
echo "$HOME/.local/bin" >> $GITHUB_PATH
python3 -m pip install --user pipx
python3 -m pipx ensurepath
fi
shell: bash
- name: Install poetry
run: pipx install poetry
shell: bash
- run: |
cd "${{ steps.path.outputs.mako }}"
poetry install --only main
shell: bash