mirror of
https://github.com/Ryujinx/Ryujinx-Mako.git
synced 2024-12-22 23:55:41 +00:00
33 lines
788 B
YAML
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
|