Sets up universal-sierra-compiler in your GitHub Actions workflow.
name: My workflow
on:
push:
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: software-mansion/setup-universal-sierra-compiler@v1
- run: universal-sierra-compiler
-
universal-sierra-compiler-foundry-version
- Optional. String:- Stating an explicit universal-sierra-compiler version to use, for example
"1.0.0"
. - Empty/not specified: the
.tool-versions
file will be read to resolve universal-sierra-compiler version, and in case it is not present the latest stable version will be used.
- Stating an explicit universal-sierra-compiler version to use, for example
-
tool-versions
- Optional. String.- Stating a relative or absolute path to the
.tool-versions
file. - Should be used only if
universal-sierra-compiler-version
is not specified.
- Stating a relative or absolute path to the
universal-sierra-compiler-prefix
- A path to where universal-sierra-compiler has been extracted to. Theuniversal-sierra-compiler
binary will be located in thebin
subdirectory (${{ steps.setup-universal-sierra-compiler.outputs.universal-sierra-compiler-prefix }}/bin
).universal-sierra-compiler-version
- Version of universal-sierra-compiler that was installed (as reported byuniversal-sierra-compiler -V
).