feat: Add unity-activate action for Unity Docker container environment setup - #28
Draft
kochounoyume with Copilot wants to merge 5 commits into
Draft
feat: Add unity-activate action for Unity Docker container environment setup#28kochounoyume with Copilot wants to merge 5 commits into
kochounoyume with Copilot wants to merge 5 commits into
Conversation
Co-authored-by: kochounoyume <78918084+kochounoyume@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Docker container setup for Unity agent
feat: Add unity-activate action for parameterized Unity Docker container setup
Mar 10, 2026
Member
|
@copilot shファイル必要?できればdockerfileとaction.ymlの二構成にしてほしい |
…oint.sh Co-authored-by: kochounoyume <78918084+kochounoyume@users.noreply.github.com>
Contributor
Author
Member
|
@copilot Dockerfileで |
Co-authored-by: kochounoyume <78918084+kochounoyume@users.noreply.github.com>
Contributor
Author
Member
|
@copilot blankprojectって書いたのはただの例で、今回の目標は指定したパスのunityプロジェクトをdockerコンテナ上で触れるようにすることなので、ライセンス認証用のプロジェクトとかはいらない. |
…ctivation Co-authored-by: kochounoyume <78918084+kochounoyume@users.noreply.github.com>
Contributor
Author
実装を見直しました。(2464d6d) 変更内容:
使い方: - uses: AndanteTribe/Actions/actions/unity-activate@main
with:
editor-image: unityci/editor:6000.3.2f1-linux-il2cpp-3.2.1
project-path: ${{ github.workspace }}/MyUnityProject # 省略時は github.workspace |
Copilot
AI
changed the title
feat: Add unity-activate action for parameterized Unity Docker container setup
feat: Add unity-activate action for Unity Docker container environment setup
Mar 10, 2026
Member
|
@copilot 認証が目的ではなくて、docker環境を立ち上げてそれを全体のアクションが終わるまで維持するような、そういう環境構築actionが目的なのだが、それは達成できるだろうか? |
Contributor
Author
はい、現在の実装で既にその目的は達成できています。 仕組みは以下の通りです:
使用例: - uses: AndanteTribe/Actions/actions/unity-activate@main
with:
editor-image: unityci/editor:6000.3.2f1-linux-il2cpp-3.2.1
project-path: ${{ github.workspace }}/MyUnityProject
# 以降のステップでコンテナを使用
- name: Run Unity build
run: docker exec unity-agent unity-editor -batchmode -nographics -quit -projectPath /workspace |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces a hardcoded
docker runcommand with a reusable composite GitHub Action that builds and starts a Unity editor container with the specified project mounted and ready to use.New:
actions/unity-activate/Two-file structure:
Dockerfile+action.yml.DockerfileARG UNITY_EDITOR_IMAGE/FROM ${UNITY_EDITOR_IMAGE}— version is supplied atdocker buildtimeENTRYPOINTto inline commands directly — no script file created at any layer:exec tail -f /dev/nullfor subsequentdocker execsteps&&for fail-fast behaviouraction.yml— composite action with three steps:docker build --build-arg UNITY_EDITOR_IMAGE=<input>— builds the container imagedocker run -d— starts the container detached; mountsproject-path→/workspaceInputs
editor-image(required)unityci/editor:6000.3.2f1-linux-il2cpp-3.2.1project-path${{ github.workspace }}/workspacecontainer-nameunity-agentdocker execcallsUsage
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.