Skip to content

fix(TowerDefense): Android 适配 — ARM64 架构 + GUI DPI缩放 + 竖屏相机 #55

fix(TowerDefense): Android 适配 — ARM64 架构 + GUI DPI缩放 + 竖屏相机

fix(TowerDefense): Android 适配 — ARM64 架构 + GUI DPI缩放 + 竖屏相机 #55

Workflow file for this run

name: Unity CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
compile-check:
name: Compile & EditMode Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
# 缓存 Library 文件夹,大幅加速后续 CI(首次约 10min,后续 1-2min)
- name: Cache Unity Library
uses: actions/cache@v4
with:
path: Untiy/Library
key: Library-${{ hashFiles('Untiy/Assets/**', 'Untiy/Packages/**', 'Untiy/ProjectSettings/**') }}
restore-keys: |
Library-
- name: Run EditMode Tests (includes compile check)
uses: game-ci/unity-test-runner@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
projectPath: Untiy # Unity 项目在子目录
unityVersion: auto # 自动读取 ProjectSettings/ProjectVersion.txt
testMode: editMode
artifactsPath: test-results
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: test-results