A simple pre-made CI workflow file which you can edit to use for your own pyro projects on github.
- Setup your pyro project files (.ppj) in the github repository
- Setup a private github repository containing the Papyrus Compiler
- Alternatively, you can use a public one
- Copy the CI.yml workflow file into the
.github/workflows
folder of your repository - Update the commented settings in the .yml file:
push:
# Set the push branches
branches:
- main
# Set the detected push folders, or remove this section entirely
paths:
- 'example/folder/path'
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
# Set the project file paths relative to the current repo
project-path:
- 'example.ppj'
- 'subpath\example2.ppj'
env:
# Set these
dist-path: dist # Folder containing the output from the project files
compiler-repo: MrOctopus/papyrus-compiler # Github repository containing your papyrus compiler
compiler-token: ${{ secrets.PRIVATE_TOKEN }} # Just use ${{ github.token }} if the compiler repository is not private
pyro-token: ${{ secrets.PRIVATE_TOKEN }} # Just use ${{ github.token }} if the ppj file does not use private imports
- You can now compile your papyrus scripts by pushing new commits to the repository
- Alternatively, you can start builds manually in the github actions tab
- Builds will be available as artifacts under github action runs
Many of the most commonly used papyrus source files are available online at this link.
Although you do not need to credit me for the workflow setup, it is a nice gesture.