Removed automatic android build
This commit is contained in:
+14
-44
@@ -1,4 +1,4 @@
|
|||||||
name: Build Windows Player and Android APK
|
name: Build Windows Player
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -7,9 +7,10 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
buildForPlatform:
|
buildWindowsPlayer:
|
||||||
name: build Player
|
name: build Windows Player
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -20,8 +21,8 @@ jobs:
|
|||||||
unityVersion:
|
unityVersion:
|
||||||
- 2020.3.24f1
|
- 2020.3.24f1
|
||||||
targetPlatform:
|
targetPlatform:
|
||||||
- Android # Build an Android APK.
|
- StandaloneWindows64 # Build a Windows 64-bit standalone.
|
||||||
- StandaloneWindows64 # Build a Windows 64-bit standalone
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
@@ -38,36 +39,14 @@ jobs:
|
|||||||
unityVersion: ${{ matrix.unityVersion }}
|
unityVersion: ${{ matrix.unityVersion }}
|
||||||
targetPlatform: ${{ matrix.targetPlatform }}
|
targetPlatform: ${{ matrix.targetPlatform }}
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: Build
|
||||||
|
path: build
|
||||||
|
|
||||||
- name: Zip Binary
|
- name: Zip Binary
|
||||||
if: matrix.targetPlatform == 'StandaloneWindows64'
|
|
||||||
run: zip -r UmaViewer_${{ matrix.targetPlatform }}.zip build/${{ matrix.targetPlatform }}/*
|
run: zip -r UmaViewer_${{ matrix.targetPlatform }}.zip build/${{ matrix.targetPlatform }}/*
|
||||||
|
|
||||||
- name: Upload Artifact for Android
|
|
||||||
if: matrix.targetPlatform == 'Android'
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: Build-${{ matrix.targetPlatform }}
|
|
||||||
path: build/${{ matrix.targetPlatform }}/*
|
|
||||||
|
|
||||||
- name: Upload Artifact for Windows
|
|
||||||
if: matrix.targetPlatform == 'StandaloneWindows64'
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: Build-${{ matrix.targetPlatform }}
|
|
||||||
path: UmaViewer_StandaloneWindows64.zip
|
|
||||||
|
|
||||||
createRelease:
|
|
||||||
needs: buildForPlatform
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Download Artifacts
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
path: build/
|
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
@@ -79,22 +58,13 @@ jobs:
|
|||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
- name: Upload Windows Release Asset
|
- name: Upload Release Asset
|
||||||
|
id: upload-release-asset
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ./build/Build-StandaloneWindows64/UmaViewer_StandaloneWindows64.zip
|
asset_path: ./UmaViewer_${{ matrix.targetPlatform }}.zip
|
||||||
asset_name: UmaViewer.zip
|
asset_name: UmaViewer.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|
||||||
- name: Upload Android Release Asset
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ./build/Build-Android/UmaViewer.apk
|
|
||||||
asset_name: UmaViewer.apk
|
|
||||||
asset_content_type: application/vnd.android.package-archive
|
|
||||||
|
|||||||
Reference in New Issue
Block a user