mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-15 06:05:10 +00:00
fix linux and mac runners
This commit is contained in:
parent
24b832fdf5
commit
32ef74f79a
1 changed files with 6 additions and 6 deletions
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
@ -14,16 +14,16 @@ jobs:
|
||||||
targetPlatform:
|
targetPlatform:
|
||||||
- StandaloneWindows64
|
- StandaloneWindows64
|
||||||
- StandaloneOSX
|
- StandaloneOSX
|
||||||
- StandaloneLinux
|
- StandaloneLinux64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
# with:
|
# with:
|
||||||
# lfs: true
|
# lfs: true
|
||||||
|
|
||||||
# Cache reused Library files to speed up compilation
|
# Cache reused Library files to speed up compilation
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: Library
|
path: Library
|
||||||
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
|
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
|
||||||
|
@ -52,18 +52,18 @@ jobs:
|
||||||
|
|
||||||
# Required on Mac for permission reasons
|
# Required on Mac for permission reasons
|
||||||
- name: Tar files
|
- name: Tar files
|
||||||
if: runner.targetPlatform == 'StandaloneOSX'
|
if: matrix.targetPlatform == 'StandaloneOSX'
|
||||||
run: tar -cvf ${{ matrix.targetPlatform }}.tar ./build/${{ matrix.targetPlatform }}
|
run: tar -cvf ${{ matrix.targetPlatform }}.tar ./build/${{ matrix.targetPlatform }}
|
||||||
|
|
||||||
- name: Upload Artifact (Windows / Linux)
|
- name: Upload Artifact (Windows / Linux)
|
||||||
if: runner.targetPlatform != 'StandaloneOSX'
|
if: matrix.targetPlatform != 'StandaloneOSX'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.targetPlatform }}-build
|
name: ${{ matrix.targetPlatform }}-build
|
||||||
path: ./build/${{ matrix.targetPlatform }}/
|
path: ./build/${{ matrix.targetPlatform }}/
|
||||||
|
|
||||||
- name: Upload Artifact (macOS)
|
- name: Upload Artifact (macOS)
|
||||||
if: runner.targetPlatform == 'StandaloneOSX'
|
if: matrix.targetPlatform == 'StandaloneOSX'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.targetPlatform }}-build
|
name: ${{ matrix.targetPlatform }}-build
|
||||||
|
|
Loading…
Reference in a new issue