fix: 修正release unity package时出现路径为空的问题 #193
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build-Debug | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "master" | |
pull_request: | |
branches: | |
- "master" | |
jobs: | |
build-dotnet: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ChronosGames/Actions/.github/actions/setup-dotnet@main | |
- run: dotnet build -c Debug | |
- run: dotnet test -c Debug --no-build | |
build-unity: | |
if: ${{ ((github.event_name == 'push' && github.repository_owner == 'ChronosGames') || startsWith(github.event.pull_request.head.label, 'ChronosGames:')) && github.triggering_actor != 'dependabot[bot]' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
unity: ["2022.3.39f1", "6000.0.12f1"] # Test with LTS | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v4 | |
# Execute Unittest | |
# /opt/Unity/Editor/Unity -quit -batchmode -nographics -silent-crashes -logFile -projectPath . -executeMethod UnitTestBuilder.BuildUnitTest /headless /ScriptBackend IL2CPP /BuildTarget StandaloneLinux64 | |
- name: Build UnitTest | |
uses: ChronosGames/Actions/.github/actions/unity-builder@main | |
env: | |
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} | |
with: | |
projectPath: src/DataTables.Unity | |
unityVersion: ${{ matrix.unity }} | |
targetPlatform: StandaloneLinux64 | |
buildMethod: UnitTestBuilder.BuildUnitTest | |
customParameters: "/headless /ScriptBackend IL2CPP" | |
- name: Check UnitTest file is generated | |
run: ls -lR ./src/DataTables.Unity/bin/UnitTest | |
- name: Execute UnitTest | |
run: ./src/DataTables.Unity/bin/UnitTest/StandaloneLinux64_IL2CPP/test | |
- uses: ChronosGames/Actions/.github/actions/check-metas@main # check meta files | |
with: | |
directory: src/DataTables.Unity |