mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-14 19:10:09 +00:00
ci: single job
This commit is contained in:
37
.github/workflows/build-debug.yml
vendored
37
.github/workflows/build-debug.yml
vendored
@@ -58,36 +58,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
directory: src/UniTask
|
directory: src/UniTask
|
||||||
|
|
||||||
# Store artifacts.
|
|
||||||
- uses: Cysharp/Actions/.github/actions/upload-artifact@main
|
|
||||||
with:
|
|
||||||
name: UniTask.unitypackage-${{ matrix.unity }}.zip
|
|
||||||
path: ./src/UniTask/*.unitypackage
|
|
||||||
retention-days: 1
|
|
||||||
|
|
||||||
test-unity:
|
|
||||||
needs: [build-unity]
|
|
||||||
if: ${{ ((github.event_name == 'push' && github.repository_owner == 'Cysharp') || startsWith(github.event.pull_request.head.label, 'Cysharp:')) && github.triggering_actor != 'dependabot[bot]' }}
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
unity: ["2021.3.41f1", "2022.3.39f1", "6000.0.12f1"] # Test with LTS
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 20
|
|
||||||
steps:
|
|
||||||
- name: Load secrets
|
|
||||||
id: op-load-secret
|
|
||||||
uses: 1password/load-secrets-action@v2
|
|
||||||
with:
|
|
||||||
export-env: false
|
|
||||||
env:
|
|
||||||
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN_PUBLIC }}
|
|
||||||
UNITY_EMAIL: "op://GitHubActionsPublic/UNITY_LICENSE/username"
|
|
||||||
UNITY_PASSWORD: "op://GitHubActionsPublic/UNITY_LICENSE/credential"
|
|
||||||
UNITY_SERIAL: "op://GitHubActionsPublic/UNITY_LICENSE/serial"
|
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
# Execute UnitTest
|
# Execute UnitTest
|
||||||
# /opt/Unity/Editor/Unity -quit -batchmode -nographics -silent-crashes -logFile -projectPath . -executeMethod UnitTestBuilder.BuildUnitTest /headless /ScriptBackend IL2CPP /BuildTarget StandaloneLinux64
|
# /opt/Unity/Editor/Unity -quit -batchmode -nographics -silent-crashes -logFile -projectPath . -executeMethod UnitTestBuilder.BuildUnitTest /headless /ScriptBackend IL2CPP /BuildTarget StandaloneLinux64
|
||||||
- name: Build UnitTest
|
- name: Build UnitTest
|
||||||
@@ -106,3 +76,10 @@ jobs:
|
|||||||
run: ls -lR ./src/UniTask/bin/UnitTest
|
run: ls -lR ./src/UniTask/bin/UnitTest
|
||||||
- name: Execute UnitTest
|
- name: Execute UnitTest
|
||||||
run: ./src/UniTask/bin/UnitTest/StandaloneLinux64_IL2CPP/test
|
run: ./src/UniTask/bin/UnitTest/StandaloneLinux64_IL2CPP/test
|
||||||
|
|
||||||
|
# Store artifacts.
|
||||||
|
- uses: Cysharp/Actions/.github/actions/upload-artifact@main
|
||||||
|
with:
|
||||||
|
name: UniTask.unitypackage-${{ matrix.unity }}.zip
|
||||||
|
path: ./src/UniTask/*.unitypackage
|
||||||
|
retention-days: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user