Ryujinx-Mako/.github/actions/setup-mako/action.yml
TSRBerry 66a1029bd5
Refactor Mako actions, fix setup-git command & add exec-ryujinx-tasks command (#3)
* Create multiple actions to make Mako easier to use

* Add smoke tests for the new actions

* Check if the required env vars aren't empty

* Fix working directory for execute-command

* Fix action_path references

* Fix broken setup_git command

* Add exec-ryujinx-tasks subcommand

* Ensure python and pipx are installed

* Improve help output

* Add required environment variables to README.md

* Add small script to generate subcommand sections automatically

* Adjust help messages for ryujinx tasks as well

* Remove required argument for positionals

* Add exec-ryujinx-tasks to subcommands list

* Apply black formatting

* Fix event name for update-reviewers
2024-01-27 20:49:49 +01:00

33 lines
780 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@v4
with:
cache: 'poetry'
- 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