# https://game.ci/docs/github/getting-started name: Build Actions on: pull_request: branches: [ main,activity4 ] workflow_dispatch: jobs: buildAndTestForLinuxBasedPlatforms: name: Build for ${{ matrix.targetPlatform }} # runs-on: ubuntu-22.04-large runs-on: ubuntu-latest strategy: fail-fast: false matrix: unityVersion: - 6000.0.37f1 targetPlatform: - StandaloneWindows64 # Windows 64-bit standalone - StandaloneLinux64 # Linux 64-bit standalone steps: - uses: actions/checkout@v4 with: fetch-depth: 0 lfs: true - uses: actions/cache@v4 with: path: Library key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} restore-keys: | Library- # - uses: https://github.com/game-ci/unity-test-runner@v4 # id: testRunner # env: # UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} # UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} # UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} # with: # unityVersion: ${{ matrix.unityVersion }} # githubToken: ${{ secrets.GITHUB_TOKEN }} # - uses: actions/upload-artifact@v3 # if: always() # with: # name: Test results (all modes) # path: ${{ steps.testRunner.outputs.artifactsPath }} # - if: matrix.targetPlatform == 'Android' # uses: jlumbroso/free-disk-space@v1.2.0 - uses: https://github.com/game-ci/unity-builder@v4 env: UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} DOCKER_DEFAULT_PLATFORM: linux/amd64 with: # runAsHostUser: true unityVersion: ${{ matrix.unityVersion }} targetPlatform: ${{ matrix.targetPlatform }} # customParameters: '-myParameter myValue -myBoolean -ThirdParameter andItsValue' - uses: actions/upload-artifact@v4 with: name: Build path: build