Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pCYSl5EDgo/setup-unity
Set up your GitHub Actions workflow with a specific version of the Unity Editor
https://github.com/pCYSl5EDgo/setup-unity
Last synced: 4 months ago
JSON representation
Set up your GitHub Actions workflow with a specific version of the Unity Editor
- Host: GitHub
- URL: https://github.com/pCYSl5EDgo/setup-unity
- Owner: pCYSl5EDgo
- License: mit
- Created: 2019-11-23T15:42:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-18T20:25:44.000Z (11 months ago)
- Last Synced: 2024-02-14T22:22:39.847Z (4 months ago)
- Language: TypeScript
- Size: 12 MB
- Stars: 27
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-unity3d - setup-unity - Set up your GitHub Actions workflow with a specific version of the Unity Editor (Open Source Repositories / Build Tools and CI)
README
# setup-unity
Set up your GitHub Actions workflow with a specific version of the Unity Editor## Usage
### Pre-requisites
Create a workflow `.yml` file in your repositories `.github/workflows` directory. An [example workflow](#example-workflow) is available below. For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file).### Required Inputs
* `unity-version` - Install Unity Editor version.
### Not Required Inputs
* `has-webgl` - Enables WebGL build. (Linux Only)
* `has-il2cpp` - Enables IL2CPP build. (Linux Only) (Above Unity2019.3)
* `has-android` - Enables Android build. (Linux Only)
* `has-ios` - Enables iOS build. (Linux Only)
* `has-mac-mono` - Enables Mac Mono build. (Linux Only)
* `has-windows-mono` - Enables Windows Mono build. (Linux Only)### Outputs
* `id` - An ID value to download that version of Unity.
### Example workflow
```yaml
name: Show alfon: push
jobs:
echo:
runs-on: ubuntu-latest
strategy:
matrix:
unity-version: [2018.4.12f1, 2019.2.13f1, 2019.3.0b12, 2020.1.0a14]
steps:
- run: echo -n -e "HELLO\n !\n World!" > text.txt- uses: pCYSl5EDgo/setup-unity@master
with:
unity-version: ${{ matrix.unity-version }}- run: /opt/Unity/Editor/Unity -quit -batchMode -logFile -noGraphics -createManualActivationFile || exit 0
- run: cat Unity_v${{ matrix.unity-version }}.alf
```## License
The scripts and documentation in this project are released under the [MIT License](LICENSE)