Fix style.overflow #240
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
name: Run the WebGL Build | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
push: | |
branches: | |
- main | |
paths: | |
- src/MinimalUtility.Unity/Assets/** | |
- src/MinimalUtility.Unity/Packages/** | |
- src/MinimalUtility.Unity/ProjectSettings/** | |
workflow_dispatch: {} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Run the WebGL Build | |
runs-on: ubuntu-latest | |
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: src/MinimalUtility.Unity/Library | |
key: Library-${{ hashFiles('src/MinimalUtility.Unity/Assets/**', 'src/MinimalUtility.Unity/Packages/**', 'src/MinimalUtility.Unity/ProjectSettings/**') }} | |
restore-keys: | | |
Library- | |
# Unityプロジェクトのビルド | |
# 設定しない場合、buildフォルダに出力される | |
- name: Run the WebGL build | |
uses: game-ci/[email protected] | |
env: | |
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
with: | |
targetPlatform: WebGL | |
unityVersion: auto | |
projectPath: "src/MinimalUtility.Unity" |