-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4dfeda4
commit 48b8fec
Showing
5 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
FROM unityci/editor:ubuntu-2019.4.18f1-windows-mono-3 | ||
ARG UNITY_VERSION=2019.4.18f1 | ||
|
||
# Source from UnityCI's prebuild unity editor containers | ||
FROM unityci/editor:${UNITY_VERSION}-windows-mono-3 | ||
|
||
#Copy entire KSPBuildTools repo into container | ||
COPY ./ /KSPBuildTools | ||
|
||
# Code file to execute when the docker container starts up (`build-assetbundle.sh`) | ||
ENTRYPOINT ["/KSPBuildTools/.github/actions/build-assetbundle/build-assetbundle.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,22 @@ | ||
name: Build Assetbundle | ||
description: Build an assetbundle | ||
|
||
inputs: | ||
unity-version: | ||
description: Full unity version name to build with. e.g. 2019.4.18f1 | ||
default: '2019.4.18f1' | ||
|
||
runs: | ||
using: docker | ||
image: Dockerfile | ||
using: composite | ||
steps: | ||
- name: Build Docker Container | ||
shell: bash | ||
run: | | ||
docker build -f --platform linux/amd64 --tag build-assetbundle --file ${{ github.action_path }}/Dockerfile --build-arg UNITY_VERSION=${{inputs.unity-version}} | ||
working-directory: ${{ github.action_path }}/../../.. | ||
|
||
- name: Run Docker Container | ||
shell: bash | ||
run: | | ||
docker run build-assetbundle --volume ${{ github.workspace }}:/github/workspace | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh -l | ||
|
||
echo "hello" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using UnityEditor; | ||
|
||
namespace KSPBuildTools.Editor { | ||
public class AssetBundleBuilder { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters