generated from ayutaz/unity_template_repository
-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from MidraLab/develop
v0.0.1
- Loading branch information
Showing
35 changed files
with
283,606 additions
and
192 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 |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: Run build | ||
on: | ||
workflow_dispatch: {} | ||
push: | ||
tags: | ||
- 'v*' | ||
jobs: | ||
build: | ||
name: Run builds for Windows, Mac, and Linux | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
targetPlatform: | ||
- StandaloneWindows64 | ||
- StandaloneOSX | ||
- StandaloneLinux64 | ||
# Unityのバージョンをここで指定します | ||
unityVersion: ['6000.0.31f1'] | ||
include: | ||
- targetPlatform: StandaloneWindows64 | ||
runsOn: ubuntu-latest | ||
- targetPlatform: StandaloneLinux64 | ||
runsOn: ubuntu-latest | ||
- targetPlatform: StandaloneOSX | ||
runsOn: macos-latest | ||
runs-on: ${{ matrix.runsOn }} | ||
steps: | ||
# リポジトリのチェックアウト | ||
- name: Check out my unity project. | ||
uses: actions/[email protected] | ||
|
||
- name: Create LFS file list | ||
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id | ||
|
||
# LFSファイルのキャッシュを取得する | ||
- name: Restore LFS cache | ||
uses: actions/[email protected] | ||
id: lfs-cache | ||
with: | ||
path: .git/lfs | ||
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }} | ||
|
||
# LFSファイルをPullする | ||
- name: Git LFS Pull | ||
run: | | ||
git lfs pull | ||
git add . | ||
git reset --hard | ||
# ファイル名にgitのハッシュを含めたいので$GITHUB_OUTPUTに保存しておく | ||
- name: Set outputs | ||
id: vars | ||
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
|
||
# Cache | ||
- uses: actions/[email protected] | ||
with: | ||
path: Library | ||
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} | ||
restore-keys: | | ||
Library- | ||
# Unityプロジェクトのビルド | ||
- name: Run the build for ${{ matrix.targetPlatform }} | ||
uses: game-ci/[email protected] | ||
env: | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
with: | ||
targetPlatform: ${{ matrix.targetPlatform }} | ||
unityVersion: ${{ matrix.unityVersion }} | ||
|
||
# 成果物をZIPにしてアップロードする | ||
- name: Upload the Build for ${{ matrix.targetPlatform }} | ||
uses: actions/[email protected] | ||
with: | ||
name: Build-${{ matrix.targetPlatform }}-${{ steps.vars.outputs.sha_short }} | ||
path: build |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.