diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b7a8978..1bb3349 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,137 +1,137 @@ -name: Actions 😎 +#name: Actions 😎 +# +#on: [push, pull_request] -on: [push, pull_request] +#jobs: +# buildAndTestForLinuxBasedPlatforms: +# name: Build for ${{ matrix.targetPlatform }} +# runs-on: ubuntu-latest +# strategy: +# fail-fast: false +# matrix: +# projectPath: +# - test-project +# unityVersion: +# - 2021.3.15f +# targetPlatform: +# - StandaloneLinux64 # Build a Linux 64-bit standalone. +# - iOS # Build an iOS player. +# - Android # Build an Android player. +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 0 +# lfs: true +# - uses: actions/cache@v2 +# with: +# path: ${{ matrix.projectPath }}/Library +# key: +# Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}-${{ +# hashFiles(matrix.projectPath) }} +# restore-keys: | +# Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}- +# Library-${{ matrix.projectPath }}- +# Library- +# - uses: game-ci/unity-builder@v2 +# env: +# UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} +# UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} +# UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} +# with: +# projectPath: ${{ matrix.projectPath }} +# unityVersion: ${{ matrix.unityVersion }} +# targetPlatform: ${{ matrix.targetPlatform }} +# customParameters: '-myParameter myValue -myBoolean -ThirdParameter andItsValue' +# - uses: actions/upload-artifact@v2 +# with: +# name: Build +# path: build -jobs: - buildAndTestForLinuxBasedPlatforms: - name: Build for ${{ matrix.targetPlatform }} - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - projectPath: - - test-project - unityVersion: - - 2021.3.15f1 - targetPlatform: - - StandaloneLinux64 # Build a Linux 64-bit standalone. - - iOS # Build an iOS player. - - Android # Build an Android player. - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - lfs: true - - uses: actions/cache@v2 - with: - path: ${{ matrix.projectPath }}/Library - key: - Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}-${{ - hashFiles(matrix.projectPath) }} - restore-keys: | - Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}- - Library-${{ matrix.projectPath }}- - Library- - - uses: game-ci/unity-builder@v2 - env: - UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} - UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} - UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} - with: - projectPath: ${{ matrix.projectPath }} - unityVersion: ${{ matrix.unityVersion }} - targetPlatform: ${{ matrix.targetPlatform }} - customParameters: '-myParameter myValue -myBoolean -ThirdParameter andItsValue' - - uses: actions/upload-artifact@v2 - with: - name: Build - path: build +# buildForWindowsBasedPlatforms: +# name: Build for ${{ matrix.targetPlatform }} +# runs-on: windows-2019 +# strategy: +# fail-fast: false +# matrix: +# projectPath: +# - test-project +# unityVersion: +# - 2021.3.15f1 +# targetPlatform: +# - StandaloneWindows64 # Build a Windows 64-bit standalone. - buildForWindowsBasedPlatforms: - name: Build for ${{ matrix.targetPlatform }} - runs-on: windows-2019 - strategy: - fail-fast: false - matrix: - projectPath: - - test-project - unityVersion: - - 2021.3.15f1 - targetPlatform: - - StandaloneWindows64 # Build a Windows 64-bit standalone. +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 0 +# lfs: true +# - uses: actions/cache@v2 +# with: +# path: ${{ matrix.projectPath }}/Library +# key: +# Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}-${{ +# hashFiles(matrix.projectPath) }} +# restore-keys: | +# Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}- +# Library-${{ matrix.projectPath }}- +# Library- +# - uses: game-ci/unity-builder@v2 +# env: +# UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} +# UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} +# UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} +# with: +# projectPath: ${{ matrix.projectPath }} +# unityVersion: ${{ matrix.unityVersion }} +# targetPlatform: ${{ matrix.targetPlatform }} +# customParameters: '-myParameter myValue -myBoolean -ThirdParameter andItsValue' +# - uses: actions/upload-artifact@v2 +# with: +# name: Build +# path: build - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - lfs: true - - uses: actions/cache@v2 - with: - path: ${{ matrix.projectPath }}/Library - key: - Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}-${{ - hashFiles(matrix.projectPath) }} - restore-keys: | - Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}- - Library-${{ matrix.projectPath }}- - Library- - - uses: game-ci/unity-builder@v2 - env: - UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} - UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} - UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} - with: - projectPath: ${{ matrix.projectPath }} - unityVersion: ${{ matrix.unityVersion }} - targetPlatform: ${{ matrix.targetPlatform }} - customParameters: '-myParameter myValue -myBoolean -ThirdParameter andItsValue' - - uses: actions/upload-artifact@v2 - with: - name: Build - path: build +# buildForMacOSBasedPlatforms: +# name: Build for ${{ matrix.targetPlatform }} +# runs-on: macos-latest +# strategy: +# fail-fast: false +# matrix: +# projectPath: +# - test-project +# unityVersion: +# - 2021.3.15f1 +# targetPlatform: +# - StandaloneOSX # Build a macOS standalone. - buildForMacOSBasedPlatforms: - name: Build for ${{ matrix.targetPlatform }} - runs-on: macos-latest - strategy: - fail-fast: false - matrix: - projectPath: - - test-project - unityVersion: - - 2021.3.15f1 - targetPlatform: - - StandaloneOSX # Build a macOS standalone. +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 0 +# lfs: true - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - lfs: true +# - uses: actions/cache@v2 +# with: +# path: ${{ matrix.projectPath }}/Library +# key: +# Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}-${{ +# hashFiles(matrix.projectPath) }} +# restore-keys: | +# Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}- +# Library-${{ matrix.projectPath }}- +# Library- - - uses: actions/cache@v2 - with: - path: ${{ matrix.projectPath }}/Library - key: - Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}-${{ - hashFiles(matrix.projectPath) }} - restore-keys: | - Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}- - Library-${{ matrix.projectPath }}- - Library- +# - uses: game-ci/unity-builder@v2 +# env: +# UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} +# UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} +# UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} +# with: +# projectPath: ${{ matrix.projectPath }} +# unityVersion: ${{ matrix.unityVersion }} +# targetPlatform: ${{ matrix.targetPlatform }} +# customParameters: '-myParameter myValue -myBoolean -ThirdParameter andItsValue' - - uses: game-ci/unity-builder@v2 - env: - UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} - UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} - UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} - with: - projectPath: ${{ matrix.projectPath }} - unityVersion: ${{ matrix.unityVersion }} - targetPlatform: ${{ matrix.targetPlatform }} - customParameters: '-myParameter myValue -myBoolean -ThirdParameter andItsValue' - - - uses: actions/upload-artifact@v2 - with: - name: Build - path: build \ No newline at end of file +# - uses: actions/upload-artifact@v2 +# with: +# name: Build +# path: build \ No newline at end of file