Skip to content

Commit

Permalink
Test client build action
Browse files Browse the repository at this point in the history
  • Loading branch information
Leinnan committed Mar 27, 2024
1 parent ac35362 commit e2f63ba
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/client_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Client build

on:
workflow_dispatch:
push:
branches:
- dev
- main
- testBuild

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build
uses: docker/build-push-action@v5
with:
push: false
tags: beamable/unrealclient:latest
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM ghcr.io/epicgames/unreal-engine:dev-5.3.2 as builder

USER ue4
# Copy your Unreal project files into the Docker image
COPY --chown=ue4 . /home/ue4/project
RUN echo $(ls -la /home/ue4/UnrealEngine/Engine/Build/BatchFiles/Linux)
RUN echo $(ls -la /home/ue4/project)

RUN /home/ue4/UnrealEngine/Engine/Build/BatchFiles/Linux/GenerateProjectFiles.sh -projectfiles -project=/home/ue4/project/BeamableUnreal.uproject -game -rocket -progress
RUN /home/ue4/UnrealEngine/Engine/Build/BatchFiles/RunUAT.sh BuildCookRun -project=/home/ue4/project/BeamableUnreal.uproject \
-utf8output \
-platform=Linux \
-clientconfig=Shipping \
-serverconfig=Shipping \
-noP4 -nodebuginfo -allmaps \
-cook -build -stage -prereqs -pak -archive \
-archivedirectory=/home/ue4/PackagedProject

0 comments on commit e2f63ba

Please sign in to comment.