Skip to content

Commit

Permalink
Update readme and test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kuler90 committed Nov 13, 2020
1 parent 4a6fea8 commit d90c67e
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 37 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/test.yml → .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test
name: test macos
on:
push:
branches:
Expand All @@ -12,27 +12,24 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
- macos-10.15
- macos-11.0
unity-version:
- 2018.4.1f1
- 2019.4.1f1
- 2020.1.0f1
- 2020.2.0b10
- 2021.1.0a4
unity-module:
- android
# - android # may freeze on macOS
- ios
- appletv
- webgl
- linux-mono
- mac-il2cpp
- windows
- windows-mono
- webgl
- facebook-games
exclude:
- os: macos-latest
unity-module: android
- unity-version: 2018.4.1f1
unity-module: linux-mono
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/test-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: test ubuntu
on:
push:
branches:
- "**"
paths-ignore:
- "**.md"
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-18.04
- ubuntu-20.04
unity-version:
- 2018.4.1f1
- 2019.4.1f1
- 2020.1.0f1
- 2020.2.0b10
unity-module:
- android
- ios
- webgl
- linux-il2cpp
- mac-mono
- windows-mono
exclude:
- unity-version: 2018.4.1f1
unity-module: linux-il2cpp
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Check free space
run: df -h
- name: Setup unity
id: setup-unity
uses: ./
timeout-minutes: 60
with:
unity-version: ${{ matrix.unity-version }}
unity-modules: ${{ matrix.unity-module }}
- name: Check free space
run: df -h
- name: Print output
run: |
echo unity-version: ${{ steps.setup-unity.outputs.unity-version }}
echo unity-path: ${{ steps.setup-unity.outputs.unity-path }}
echo env UNITY_PATH: ${{ env.UNITY_PATH }}
50 changes: 50 additions & 0 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: test windows
on:
push:
branches:
- "**"
paths-ignore:
- "**.md"
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- windows-2019
unity-version:
- 2018.4.1f1
- 2019.4.1f1
- 2020.1.0f1
- 2020.2.0b10
unity-module:
- android
- ios
- appletv
- webgl
- windows-il2cpp
- linux-mono
- mac-mono
exclude:
- unity-version: 2018.4.1f1
unity-module: linux-mono
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Check free space
run: df -h
- name: Setup unity
id: setup-unity
uses: ./
timeout-minutes: 60
with:
unity-version: ${{ matrix.unity-version }}
unity-modules: ${{ matrix.unity-module }}
- name: Check free space
run: df -h
- name: Print output
run: |
echo unity-version: ${{ steps.setup-unity.outputs.unity-version }}
echo unity-path: ${{ steps.setup-unity.outputs.unity-path }}
echo env UNITY_PATH: ${{ env.UNITY_PATH }}
33 changes: 7 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# setup-unity

<p align="left">
<a href="https://github.com/kuler90/setup-unity/actions"><img alt="GitHub Actions status" src="https://github.com/kuler90/setup-unity/workflows/test/badge.svg?branch=master"></a>
<a href="https://github.com/kuler90/setup-unity/actions"><img alt="GitHub Actions status" src="https://github.com/kuler90/setup-unity/workflows/test%20ubuntu/badge.svg?branch=master"></a>
<a href="https://github.com/kuler90/setup-unity/actions"><img alt="GitHub Actions status" src="https://github.com/kuler90/setup-unity/workflows/test%20macos/badge.svg?branch=master"></a>
<a href="https://github.com/kuler90/setup-unity/actions"><img alt="GitHub Actions status" src="https://github.com/kuler90/setup-unity/workflows/test%20windows/badge.svg?branch=master"></a>
</p>

GitHub Action to download and install Unity. Based on Unity Hub.

Works on Ubuntu, macOS and Windows. [More details](https://github.com/kuler90/setup-unity/actions/runs/349277097)
Works on Ubuntu, macOS and Windows.

## Inputs

Expand All @@ -22,30 +24,9 @@ Unity version changeset. For example, `50fe8a171dd9`. Automatically parsed from

List of Unity modules (e.g. build support) to install. For example, `[ios, android, webgl]`.

Available modules:

Documentation: documentation
Standard Assets: standardassets
Example Project: example
Android Build Support: android
iOS Build Support: ios
tvOS Build Support: appletv
Linux Build Support: linux-mono
SamsungTV Build Support: samsung
Tizen Build Support: tizen
WebGL Build Support: webgl
Windows Build Support: windows
Facebook Gameroom Build Support: facebook-games
MonoDevelop / Unity Debugger: monodevelop
Vuforia Augmented Reality Support: vuforia-ar
Language packs: language-ja, language-ko, language-zh-cn, language-zh-hant, language-zh-hans
Mac Build Support (IL2CPP): mac-il2cpp
Windows Build Support (Mono): windows-mono
Android SDK & NDK Tools: android-sdk-ndk-tools
OpenJDK: android-open-jdk
Lumin OS (Magic Leap) Build Support: lumin

Also list of available modules can be checked by execute: `<path-to-unity-hub> -- --headless help`.
Available modules can be found in test workflows ([test-ubuntu](https://github.com/kuler90/setup-unity/blob/master/.github/workflows/test-ubuntu.yml), [test-macos](https://github.com/kuler90/setup-unity/blob/master/.github/workflows/test-macos.yml), [test-windows](https://github.com/kuler90/setup-unity/blob/master/.github/workflows/test-windows.yml)).

Also list of available modules can be found by execute `<unity-hub> -- --headless help` but result may contains wrong names.

### `unity-modules-child`

Expand Down

0 comments on commit d90c67e

Please sign in to comment.