Create macos.yml
This commit is contained in:
parent
2288f68ba6
commit
d471fd01a1
58
.github/workflows/macos.yml
vendored
Normal file
58
.github/workflows/macos.yml
vendored
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
name: Build MacOS
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build for ${{ matrix.targetPlatform }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
targetPlatform:
|
||||||
|
- StandaloneOSX
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
# with:
|
||||||
|
# lfs: true
|
||||||
|
|
||||||
|
# Cache resued Library files to speed up compilation
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: Library
|
||||||
|
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
|
||||||
|
restore-keys: |
|
||||||
|
Library-
|
||||||
|
|
||||||
|
# Test (No tests yet, leaving this here for future.)
|
||||||
|
# - name: Run tests
|
||||||
|
# uses: game-ci/unity-test-runner@v2
|
||||||
|
# env:
|
||||||
|
# UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
|
# with:
|
||||||
|
# githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# Build project with Unity
|
||||||
|
- name: Build project
|
||||||
|
uses: game-ci/unity-builder@v2
|
||||||
|
env:
|
||||||
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||||
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||||
|
with:
|
||||||
|
unityVersion: auto
|
||||||
|
buildName: Heaven Studio
|
||||||
|
buildsPath: build
|
||||||
|
targetPlatform: ${{ matrix.targetPlatform }}
|
||||||
|
|
||||||
|
- name: Tar files
|
||||||
|
run: tar -cvf ${{ matrix.targetPlatform }}.tar ./build/${{ matrix.targetPlatform }}
|
||||||
|
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ${{ matrix.targetPlatform }}-build
|
||||||
|
path: ${{ matrix.targetPlatform }}.tar
|
||||||
|
|
Loading…
Reference in a new issue