diff --git a/.github/workflows/test.yml b/.github/workflows/test-macos.yml similarity index 81% rename from .github/workflows/test.yml rename to .github/workflows/test-macos.yml index b9752b0..df30948 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test-macos.yml @@ -1,4 +1,4 @@ -name: test +name: test macos on: push: branches: @@ -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 diff --git a/.github/workflows/test-ubuntu.yml b/.github/workflows/test-ubuntu.yml new file mode 100644 index 0000000..9c18139 --- /dev/null +++ b/.github/workflows/test-ubuntu.yml @@ -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 }} diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml new file mode 100644 index 0000000..9cbe6eb --- /dev/null +++ b/.github/workflows/test-windows.yml @@ -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 }} diff --git a/README.md b/README.md index 4cb9c96..dee3a4b 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,14 @@ # setup-unity

- GitHub Actions status + GitHub Actions status + GitHub Actions status + GitHub Actions status

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 @@ -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: ` -- --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 ` -- --headless help` but result may contains wrong names. ### `unity-modules-child`