HeavenStudioPlus/.github/workflows/linux.yml
patataofcourse 2b0ced2f17 make actions only run on master and release_1
to be updated for future branches that get ran like this ig (?
2023-06-08 23:17:40 +02:00

56 lines
1.5 KiB
YAML

name: Build Linux
on:
push:
branches: [ "master", "release_1" ]
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 }}/