Skip to content

Commit

Permalink
fix: remove debugs and run full workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 committed Feb 17, 2024
1 parent 9e423ec commit d2d2f96
Showing 1 changed file with 17 additions and 33 deletions.
50 changes: 17 additions & 33 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@ jobs:
fail-fast: false
matrix:
targetPlatform:
# - StandaloneWindows64
# - StandaloneLinux64
- StandaloneWindows64
- StandaloneLinux64
- WebGL
# outputs:
# release: ${{ steps.release.outputs.test }}
steps:
- name: clone project
uses: actions/checkout@v4
Expand All @@ -64,26 +62,21 @@ jobs:
name: WebGL-Template
path: WebGL

# - name: cache Library
# uses: actions/cache@v3
# with:
# path: Library
# key: Library-${{ matrix.targetPlatform }}
# restore-keys: Library-${{ matrix.targetPlatform }}
#
# - name: build project for ${{ matrix.targetPlatform }}
# uses: game-ci/unity-builder@v4
# env:
# UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
# UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
# UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
# with:
# targetPlatform: ${{ matrix.targetPlatform }}

- name: fake build
run: |
mkdir -p build/${{ matrix.targetPlatform }}/${{ matrix.targetPlatform }}/Build
echo "fake build for ${{ matrix.targetPlatform }}" > build/${{ matrix.targetPlatform }}/${{ matrix.targetPlatform }}/Build/index.html
- name: cache Library
uses: actions/cache@v3
with:
path: Library
key: Library-${{ matrix.targetPlatform }}
restore-keys: Library-${{ matrix.targetPlatform }}

- name: build project for ${{ matrix.targetPlatform }}
uses: game-ci/unity-builder@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: ${{ matrix.targetPlatform }}

- name: upload ${{ matrix.targetPlatform }} build
uses: actions/upload-artifact@v4
Expand All @@ -92,15 +85,6 @@ jobs:
name: Build-${{ matrix.targetPlatform }}
path: build/${{ matrix.targetPlatform }}

# - name: archive ${{ matrix.targetPlatform }} release
# run: cd build/${{ matrix.targetPlatform }} && zip -r ../../neebo-${{ github.ref_name }}-${{ matrix.targetPlatform }}.zip .
#
# - name: publish ${{ matrix.targetPlatform }} release
# uses: softprops/action-gh-release@v1
# id: release
# with:
# files: neebo-${{ github.ref_name }}-${{ matrix.targetPlatform }}.zip

- name: write matrix outputs
uses: cloudposse/github-action-matrix-outputs-write@main
id: out
Expand Down

0 comments on commit d2d2f96

Please sign in to comment.