Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGL build failing with no errors #667

Open
celojevic opened this issue Sep 6, 2024 · 0 comments
Open

WebGL build failing with no errors #667

celojevic opened this issue Sep 6, 2024 · 0 comments
Labels
need steps to reproduce There is insufficient information to take action

Comments

@celojevic
Copy link

Hello there! I just got into adding CI/CD for my game. I was able to get a mac build successfully going. However, I'm having issues with it on the webgl platform. It keeps failing after ~45 minutes during the build step. Any help or advice would be appreciated!

Ive also attached the logs from the failed build.
logs_28072298948.zip

And here are some screenshots from my build summary:
Screenshot 2024-09-06 125732
Screenshot 2024-09-06 125744

Here is my yml:

name: Build and Upload WebGL on Main Push 😎

on: [push]

env:
  itchio_project: goonby/tombstone
  itchio_channel: webgl

jobs:
  build:
    name: Build my project ✨
    # ubuntu-latest tends to throw error: The hosted runner: GitHub Actions lost communication with the server. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error.
    runs-on: ubuntu-20.04
    steps:
      # Free up disk space
      - name: Free Disk Space (Ubuntu)
        uses: jlumbroso/free-disk-space@main
        with:
          # this might remove tools that are actually needed,
          # if set to "true" but frees about 6 GB
          tool-cache: false          
          # all of these default to true, but feel free to set to
          # "false" if necessary for your workflow
          android: true
          dotnet: true
          haskell: true
          large-packages: true
          docker-images: true
          swap-storage: true
    
      # Checkout
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          lfs: true
          submodules: recursive
      
      # Checkout sprites repo
      - name: Check out Sprites private repo
        uses: actions/checkout@v4
        with:
          repository: celojevic/Sprites_Tombstone
          token: ${{ secrets.PRIVATE_REPO_PAT }}
          path: 'Assets/Sprites_Tombstone'
          
      # Checkout FMOD repo
      - name: Check out FMOD private repo
        uses: actions/checkout@v4
        with:
          repository: celojevic/FMOD_Tombstone
          token: ${{ secrets.PRIVATE_REPO_PAT }}
          path: 'Assets/FMOD_Tombstone'

      # Cache
      - uses: actions/cache@v4
        with:
          path: Library
          key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
          restore-keys: |
            Library-

      # Build
      - name: Build project
        uses: game-ci/unity-builder@v4
        env:
          UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
          UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
          UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
        with:
          targetPlatform: WebGL

      # Output
      - uses: actions/upload-artifact@v3
        with:
          name: Build
          path: build
          
      # Upload the build using Butler
      - name: Install Butler CLI
        run: |
          curl -L -o butler.zip https://broth.itch.zone/butler/linux-amd64/LATEST/archive/default
          unzip butler.zip -d butler
          sudo mv butler/butler /usr/local/bin/
          butler -V

      # Deploy
      - name: Upload build to itch.io
        run: |
          butler push build ${{ env.itchio_project }}:${{ env.itchio_channel }}
        env:
          BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
@davidmfinol davidmfinol added the need steps to reproduce There is insufficient information to take action label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need steps to reproduce There is insufficient information to take action
Projects
None yet
Development

No branches or pull requests

2 participants