check entrypoint.sh
Some checks failed
Build project / Build for ${{ matrix.targetPlatform }} (StandaloneLinux64, 6000.0.37f1) (push) Failing after 8m39s
Build project / Build for ${{ matrix.targetPlatform }} (StandaloneWindows64, 6000.0.37f1) (push) Failing after 8m38s

This commit is contained in:
EthanPisani 2025-02-18 20:58:26 -05:00
parent f27b16bbe5
commit a5d7824d5b

View File

@ -10,43 +10,59 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
targetPlatform: targetPlatform:
- StandaloneWindows64 # Build a Windows 64-bit standalone. - StandaloneWindows64 # Windows 64-bit standalone
- StandaloneLinux64 # Build a Linux 64-bit standalone. - StandaloneLinux64 # Linux 64-bit standalone
unityVersion: unityVersion:
- 6000.0.37f1 - 6000.0.37f1 # Stable Unity LTS version (update if needed)
steps: steps:
- name: Update APT and Install Curl - name: Update APT and Install Dependencies
run: | run: |
apt-get update sudo apt-get update
apt-get install -y curl git-lfs sudo apt-get install -y curl git-lfs
git lfs install git lfs install
- name: Manually Install Node.js and Dependencies - name: Install Node.js
run: | run: |
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
apt-get install -y nodejs sudo apt-get install -y nodejs
node -v node -v
- uses: actions/checkout@v4 - name: Checkout Repository
uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
lfs: true lfs: true
- uses: actions/cache@v3
- name: Cache Unity Library (Speeds up builds)
uses: actions/cache@v3
with: with:
path: Library path: Library
key: Library-${{ matrix.targetPlatform }} key: Library-${{ matrix.targetPlatform }}
restore-keys: Library- restore-keys: Library-
- uses: https://gitea.zuzu.red/EthanPisani/unity-builder@v4
- name: Ensure Entrypoint Exists & is Executable
run: |
if [ -f "/entrypoint.sh" ]; then
echo "Entrypoint found!"
chmod +x /entrypoint.sh
else
echo "Entrypoint script missing! Build may fail."
fi
- name: Build with Unity
uses: game-ci/unity-builder@v4
env: env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
RUN_AS_HOST_USER: true
with: with:
targetPlatform: ${{ matrix.targetPlatform }} targetPlatform: ${{ matrix.targetPlatform }}
unityVersion: ${{ matrix.unityVersion }} unityVersion: ${{ matrix.unityVersion }}
runAsHostUser: true runAsHostUser: false # Fixes self-hosted permission issues
- uses: actions/upload-artifact@v3
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with: with:
name: Build-${{ matrix.targetPlatform }} name: Build-${{ matrix.targetPlatform }}
path: build/${{ matrix.targetPlatform }} path: build/${{ matrix.targetPlatform }}