ã¯ããã«
ã¾ã æå
ã®ä½æ¥ç¨ãã·ã³ã§Unityãã«ããåãã¦ã¾ãããï¼
Unity2021ã§IL2CPPãã«ããæ©ããªã£ãã¨ã¯ãããçµæ§ãªæéã®ãã¹ã§ãã
ä½ããããæå
ã®ãã·ã³ãä¸æçã«ä½¿ããªããªãä½æ¥ãä¸æãããã¨ããã®ãææªãªä½é¨ã§ãã
GitHubï¼âããã¯ä½ã§ãè¯ãï¼ã«ã³ã¼ããpushãããèªåçã«ãã«ãããã¦ãããã
ããã2021å¹´ã«ãããæä½éã®éçºç°å¢ã ã¨èãã¦ãããããç°¡åã«æ¹æ³ãç´¹ä»ãã¦ããã¾ãã
ã§ãé«ãããããªãã®ï¼ã¨ãæãæ¹ããªãã¨GitHub Actionsã¯ç¡ææ ãããã¾ãã
詳細ã¯å¾è¿°ãã¾ãããå°ããããã¸ã§ã¯ããªãæ¯æ200åç¨åº¦ã¯ç¡æã§ãã«ããããã¨ãåºæ¥ã¡ããã¾ãï¼
ç§äºã§ãããã¤ã³ãã£ã¼ã²ã¼ã éçºè
åãã®éçºå¹çåã³ã³ãµã«ã¿ãããªä»äºãå§ãããã¨æã£ã¦ããã®ã§
ããã«ãç°å¢ã®æ§ç¯ãã£ã¨è©³ããæãã¦ãã¨ããããããä½æ¥ç¡é§ã ã¨æã£ã¦ããã ãã©èªåååºæ¥ãªãï¼ãã¿ãããªç¸è«ãã©ãã©ããå¯ããã ããï¼
ã¡ãã»ã¼ã¸ãã©ã¼ã
ä»åã®è¨äºã§è©±ããªããã¨ï¼
- iOSãã«ã
- ããã¯åä»ãªã®ã§å¥è¨äºã«ã¾ã¨ãã¾ããã§ãåä»ãªã ãã§GitHub Actionsã§èªåååºæ¥ã¾ãã
- è¿½è¨ : ã¾ã¨ãã¾ããã GitHubActionsã§Unityã®iOSãã«ããèµ°ããã¦Xcodeãã«ãããã¦App Centerã«é ä¿¡ããã¾ã§
GitHub Actionsã«ã¤ãã¦
GitHub Actionsã«ã¤ãã¦ã¯ã解説è¨äºãç¡éã«ããã®ã§ã°ã°ã£ã¦ãã ããã
Game CIã«ã¤ãã¦
Game CIã¨ã¯ãGitHub Actionsã§ä½¿ç¨ã§ããUnityãã«ãç¨workflowãã¾ã¨ãã¦ããã¦ãããªãã¸ããªã§ãã
ä»åç´¹ä»ããæ¹æ³ã§ã¯ãåºæ¬çã«Game CIã使ç¨ããã®ã§ãã£ã¨ç´°ããè¨å®ããããï¼ã¨æã£ãããã¡ãã®ããã¥ã¡ã³ãããåç
§ãã ããã
https://game.ci/docs/github/getting-started
ã»ããã¢ãã
ã¾ãUnityã®ã©ã¤ã»ã³ã¹ãGitHub Actionsã§ä½¿ããããã«ããå¿
è¦ãããã¾ãã
https://game.ci/docs/github/activation
DevelopmentBuild
mainãã©ã³ãã«pushãããããã«ãããã
以ä¸ã®ã³ã¼ãã§WebGLã¨StandaloneWindows64ã®ãã«ããåæã«èµ°ãã¾ãã
# .github/workflows/development-build.yml name: Development build on: push: branches: - main jobs: build: name: Build ${{ matrix.targetPlatform }} runs-on: ubuntu-latest strategy: fail-fast: false matrix: targetPlatform: - WebGL - StandaloneWindows64 steps: - name: Checkout repository uses: actions/checkout@v2 - uses: actions/cache@v2 with: path: Unity/Library key: Library-${{ matrix.targetPlatform }} restore-keys: | Library- - name: Build uses: game-ci/unity-builder@v2 env: UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} with: projectPath: Unity targetPlatform: ${{ matrix.targetPlatform }} - uses: actions/upload-artifact@v2 with: name: Build-${{ matrix.targetPlatform }} path: build/${{ matrix.targetPlatform }}
PullRequestã®ãã¹ã
PullRequestãåºããããã¹ãã³ã¼ããèµ°ããã¾ãã
name: PullRequest test on: [pull_request] jobs: build: name: Unity Test runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v2 - uses: actions/cache@v2 with: path: Library key: Library - name: Run tests uses: game-ci/unity-test-runner@v2 env: UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} with: projectPath: Unity githubToken: ${{ secrets.GITHUB_TOKEN }}
注æç¹
ç¡ææ ã«ã¤ãã¦
GitHub Actionsã«ã¯ç¡ææ ã2000å/æã¤ãã¦ã¾ãã
1åã®ãã«ãã«10åãããã¨ãã¦ã200åãã«ãåºæ¥ã¾ãã
1æ¥6åè¨ç®ã§ãããããã§ååã ã¨æãããã¯äººã«ããã¨æãã¾ããã
https://docs.github.com/ja/billing/managing-billing-for-github-actions/about-billing-for-github-actions
è¶
ãã¦ãåæè¨å®ã§ã¯ãã«ããèµ°ããªããªãã ãã§åæã«èª²éããããã¨ã¯ãªãã®ã§å®å¿ãã¦ãã ããã
課éããå ´åã¯ãLinuxã¯$0.008/åãªã®ã§ã1ãã«ã(=10å)ã9åãããã§ãã
ãã£ã¨ãã¼ãã«ä½¿ããªãã»ã«ããã¹ãã©ã³ãã¼ã¨ããä»çµã¿ã«ãããèªåã®ãã·ã³ã§Actionsãå®è¡ããæ¹æ³ãåãã¾ãã
æåã¯è»½ãç¡ææ ã§ä½¿ã£ã¦ãããªãããå°æ¥çã«ãã¼ãã«ä½¿ããã¨ã«ãªã£ãã¨ãã«ã課éãã or ã»ã«ããã¹ãã©ã³ãã¼ãæºåãããã¨ããé¸æè¢ãåããã®ãGitHub Actionsã®è¯ãã¨ããã§ããã