Seperate build actions (#229)

* Update main.yml

* Create macos.yml

* Create linux.yml

* Rename main.yml to windows.yml

* Update README.md
This commit is contained in:
Saraistupid 2023-01-24 02:06:08 +02:00 committed by GitHub
parent 1d18d6a510
commit c2f7fa1a32
4 changed files with 112 additions and 6 deletions

54
.github/workflows/linux.yml vendored Normal file
View file

@ -0,0 +1,54 @@
name: Build Linux
on: [push]
jobs:
build:
name: Build for ${{ matrix.targetPlatform }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
targetPlatform:
- StandaloneLinux64
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 }}
# Output
- uses: actions/upload-artifact@v2
with:
name: ${{ matrix.targetPlatform }}-build
path: ./build/${{ matrix.targetPlatform }}/

View file

@ -1,4 +1,4 @@
name: Build my project ✨ name: Build MacOS
on: [push] on: [push]
@ -10,8 +10,6 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
targetPlatform: targetPlatform:
- StandaloneWindows64
- StandaloneLinux64
- StandaloneOSX - StandaloneOSX
steps: steps:

54
.github/workflows/windows.yml vendored Normal file
View file

@ -0,0 +1,54 @@
name: Build Windows
on: [push]
jobs:
build:
name: Build for ${{ matrix.targetPlatform }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
targetPlatform:
- StandaloneWindows64
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 }}
# Output
- uses: actions/upload-artifact@v2
with:
name: ${{ matrix.targetPlatform }}-build
path: ./build/${{ matrix.targetPlatform }}/

View file

@ -25,9 +25,9 @@
This project is still in development, so there are currently no release builds yet. GitHub Actions creates experimental builds on each commmit, but minimal support will be provided. This project is still in development, so there are currently no release builds yet. GitHub Actions creates experimental builds on each commmit, but minimal support will be provided.
- [Windows](https://nightly.link/megaminerjenny/HeavenStudio/workflows/main/master/StandaloneWindows64-build.zip) - [Windows](https://nightly.link/megaminerjenny/HeavenStudio/workflows/windows/master/StandaloneWindows64-build.zip)
- [Linux](https://nightly.link/megaminerjenny/HeavenStudio/workflows/main/master/StandaloneLinux64-build.zip) - [Linux](https://nightly.link/megaminerjenny/HeavenStudio/workflows/linux/master/StandaloneLinux64-build.zip)
- [MacOS](https://nightly.link/megaminerjenny/HeavenStudio/workflows/main/master/StandaloneOSX-build.zip) - [MacOS](https://nightly.link/megaminerjenny/HeavenStudio/workflows/macos/master/StandaloneOSX-build.zip)
#### Important Notes: #### Important Notes:
- The prebuilt binaries are compressed in tar format, you may need to use 7-Zip or WinRAR on Windows to extract them. - The prebuilt binaries are compressed in tar format, you may need to use 7-Zip or WinRAR on Windows to extract them.
- On MacOS and Linux builds you may [experience bugs with audio-related tasks](https://github.com/megaminerjenny/HeavenStudio/issues/72), but in most cases Heaven Studio works perfectly. - On MacOS and Linux builds you may [experience bugs with audio-related tasks](https://github.com/megaminerjenny/HeavenStudio/issues/72), but in most cases Heaven Studio works perfectly.