Skip to content

Bump actions/upload-artifact from 3 to 4 #33

Bump actions/upload-artifact from 3 to 4

Bump actions/upload-artifact from 3 to 4 #33

Workflow file for this run

name: GameCI 😎
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main, '*']
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
# cancel-in-progress: true
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
jobs:
testOnAllSupportedPlatforms:
name: Run tests on ${{ matrix.targetPlatform }}
runs-on: ubuntu-latest
permissions:
actions: write
checks: write
strategy:
fail-fast: false
matrix:
targetPlatform:
- StandaloneLinux64
steps:
- run: |
sudo apt update
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- uses: actions/cache@v3
with:
path: Library
key: Library-${{ matrix.targetPlatform }}
restore-keys: |
Library-${{ matrix.targetPlatform }}
Library-
- uses: game-ci/unity-test-runner@v4
id: testRunner
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v4
if: always()
with:
name: Test results (all modes)
path: ${{ steps.testRunner.outputs.artifactsPath }}
buildForAllSupportedPlatforms:
name: Build for ${{ matrix.targetPlatform }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
targetPlatform:
- StandaloneOSX # Build a macOS standalone (Intel 64-bit).
# - StandaloneWindows # Build a Windows standalone.
- StandaloneWindows64 # Build a Windows 64-bit standalone.
- StandaloneLinux64 # Build a Linux 64-bit standalone.
# - iOS # Build an iOS player.
# - Android # Build an Android .apk standalone app.
- WebGL # WebGL.
steps:
- run: |
sudo apt update
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- uses: actions/cache@v3
with:
path: Library
key: Library-${{ matrix.targetPlatform }}
restore-keys: |
Library-${{ matrix.targetPlatform }}
Library-
- uses: jlumbroso/free-disk-space@main
if: matrix.targetPlatform == 'Android'
- uses: game-ci/unity-builder@v4
with:
targetPlatform: ${{ matrix.targetPlatform }}
# We use dirty build because we are replacing the default project settings file above
allowDirtyBuild: true
- uses: actions/upload-artifact@v4
with:
name: Build-${{ matrix.targetPlatform }}
path: build/${{ matrix.targetPlatform }}