Skip to content

Commit

Permalink
Update build-windows.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
noir-neo authored Nov 15, 2023
1 parent ce7366c commit fff344a
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Windows
name: Build Project

on:
push:
Expand All @@ -7,8 +7,14 @@ on:

jobs:
build:
name: Run build steps
name: Build for ${{ matrix.targetPlatform }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
targetPlatform:
- StandaloneOSX
- StandaloneWindows64
steps:
# Checkout
- name: Checkout repository
Expand All @@ -18,7 +24,7 @@ jobs:
- uses: actions/cache@v3
with:
path: Library
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
key: Library-${{ matrix.targetPlatform }}
restore-keys: |
Library-
Expand All @@ -31,12 +37,12 @@ jobs:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: StandaloneWindows64
targetPlatform: ${{ matrix.targetPlatform }}
buildName: hatbor
versioning: Semantic

# Output
- uses: actions/upload-artifact@v3
with:
name: 'hatbor-${{ steps.buildStep.with.targetPlatform }}-${{ steps.buildStep.outputs.buildVersion }}'
path: build
name: hatbor-${{ matrix.targetPlatform }}-${{ steps.buildStep.outputs.buildVersion }}
path: build/${{ matrix.targetPlatform }}

0 comments on commit fff344a

Please sign in to comment.