Add setup-mako action

This commit is contained in:
TSR Berry 2023-08-24 23:48:54 +02:00
parent 23f694e547
commit ca55893b05
No known key found for this signature in database
GPG Key ID: 52353C0A4CCA15E2
2 changed files with 35 additions and 0 deletions

23
.github/actions/setup-mako/README.md vendored Normal file
View File

@ -0,0 +1,23 @@
# setup-mako
A small composite action to set up the environment for Mako.
It installs poetry and all module dependencies.
## Usage
Add the following steps to your workflow:
```yml
- name: Checkout Ryujinx-Mako
uses: actions/checkout@v3
with:
repository: Ryujinx/Ryujinx-Mako
ref: master
path: ".ryujinx-mako"
- name: Setup Ryujinx-Mako
uses: .ryujinx-mako/.github/actions/setup-mako
```

12
.github/actions/setup-mako/action.yml vendored Normal file
View File

@ -0,0 +1,12 @@
name: 'Setup Ryujinx-Mako'
description: 'Setup the environment for Ryujinx-Mako'
runs:
using: 'composite'
steps:
- run: pipx install poetry
shell: bash
- run: |
cd .ryujinx-mako
poetry install --only main
shell: bash