forked from Conjure-Tools/unity-runner
added some fun configurations
This commit is contained in:
parent
bd41705a0c
commit
587d0234d4
@ -1,54 +0,0 @@
|
|||||||
name: Create Images
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
get-versions:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
versions: ${{ steps.get-versions.outputs.versions }}
|
|
||||||
steps:
|
|
||||||
- name: Get Unity Versions
|
|
||||||
id: get-versions
|
|
||||||
run: |
|
|
||||||
VERSIONS=$(head -n -1 versions.txt | tr '\n' ',')
|
|
||||||
echo "::set-output name=versions::$VERSIONS"
|
|
||||||
|
|
||||||
build-docker:
|
|
||||||
needs: get-versions
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
DOCKER_REGISTRY: docker.lakes.house/
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
platform:
|
|
||||||
- webgl
|
|
||||||
- android
|
|
||||||
version: ${{ fromJson(needs.get-versions.outputs.versions) }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Login to Docker Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: ${{ env.DOCKER_REGISTRY }}
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
|
|
||||||
- name: Docker Build
|
|
||||||
run: ./scripts/build-image.sh
|
|
||||||
id: build-image
|
|
||||||
env:
|
|
||||||
UNITY_VERSION: ${{ matrix.version }}
|
|
||||||
UNITY_PLATFORM: ${{ matrix.platform }}
|
|
||||||
IMAGE: ${{ env.DOCKER_REGISTRY }}unityci/editor
|
|
||||||
GAMECI_VERSION: ${{ env.GAMECI_VERSION }}
|
|
||||||
|
|
||||||
- name: Docker Push
|
|
||||||
run: |
|
|
||||||
echo "Pushing Docker Image ${{ steps.build-image.outputs.FULL_IMAGE }}"
|
|
||||||
echo "- Image: ${{ steps.build-image.outputs.IMAGE }}"
|
|
||||||
echo "- Tag: ${{ steps.build-image.outputs.TAG }}"
|
|
||||||
docker push ${{ steps.build-image.outputs.FULL_IMAGE }}
|
|
||||||
@ -1,12 +1,31 @@
|
|||||||
name: Create Images
|
name: Create Images
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- 'versions.txt'
|
- 'versions.txt'
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
unity_version:
|
||||||
|
description: 'Unity Version'
|
||||||
|
required: true
|
||||||
|
default: '6000.0.35f1'
|
||||||
|
type: string
|
||||||
|
platform:
|
||||||
|
description: 'Platform'
|
||||||
|
required: false
|
||||||
|
default: 'all'
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- all
|
||||||
|
- webgl
|
||||||
|
- android
|
||||||
|
- ios
|
||||||
|
- mac-mono
|
||||||
|
- windows-mono
|
||||||
|
- linux-il2cpp
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-docker:
|
build-docker:
|
||||||
@ -23,9 +42,13 @@ jobs:
|
|||||||
- mac-mono
|
- mac-mono
|
||||||
- windows-mono
|
- windows-mono
|
||||||
- linux-il2cpp
|
- linux-il2cpp
|
||||||
# - windows-il2cpp
|
|
||||||
|
|
||||||
|
name: Build 🐳 ${{ matrix.platform }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Skip if platform does not match input
|
||||||
|
if: ${{ github.event.inputs.platform != 'all' && github.event.inputs.platform != '' && matrix.platform != github.event.inputs.platform }}
|
||||||
|
run: exit 0
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Login to Docker Registry
|
- name: Login to Docker Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user