From d607a5978694d7b4bd0d863a97a1db9efbe113ac Mon Sep 17 00:00:00 2001 From: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> Date: Sat, 18 Mar 2023 14:01:21 +0100 Subject: [PATCH 1/2] Create unreal CI --- .github/workflows/unreal.yaml | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/unreal.yaml diff --git a/.github/workflows/unreal.yaml b/.github/workflows/unreal.yaml new file mode 100644 index 0000000000..184f1ffdfd --- /dev/null +++ b/.github/workflows/unreal.yaml @@ -0,0 +1,42 @@ +name: Unreal Plugin + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build_and_test: + runs-on: ubuntu-latest + container: + image: ghcr.io/epicgames/unreal-engine:dev + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Setup environment variables + run: | + echo "UE_PATH=/home/ue4/UnrealEngine" >> $GITHUB_ENV + + - name: Build Plugin + run: | + # Run the Unreal Automation Tool (UAT) to build the plugin + "${{ env.UE_PATH }}/Engine/Build/BatchFiles/RunUAT.sh" \ + BuildPlugin \ + -Plugin="${{ github.workspace }}/sdks/ue4/Quilkin.uplugin" \ # Path to the plugin + -Package="${{ github.workspace }}/PluginBuild" \ # Output directory for the built plugin + -Rocket + + - name: Run Tests + run: | + # Run the tests using UE4Editor-Cmd (Command Line) with the Automation framework + "${{ env.UE_PATH }}/Engine/Binaries/Linux/UE4Editor-Cmd" \ + -run=Automation \ # Run the Automation framework for testing + -Plugin="${{ github.workspace }}/sdks/ue4/Quilkin.uplugin" \ # Path to the plugin + -unattended \ # Run in unattended mode (no user interaction) + -nopause \ # Do not pause after executing the command + -testexit="Automation Test Queue Empty" \ # Exit when the test queue is empty + -log # Output log information From 3151d2b6ac1b338f272ac6e0aae2de5f2c86dfbd Mon Sep 17 00:00:00 2001 From: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> Date: Sat, 18 Mar 2023 14:08:40 +0100 Subject: [PATCH 2/2] Update unreal.yaml --- .github/workflows/unreal.yaml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/unreal.yaml b/.github/workflows/unreal.yaml index 184f1ffdfd..715180f98a 100644 --- a/.github/workflows/unreal.yaml +++ b/.github/workflows/unreal.yaml @@ -13,6 +13,9 @@ jobs: runs-on: ubuntu-latest container: image: ghcr.io/epicgames/unreal-engine:dev + credentials: + username: ${{ secrets.GITHUB_ACTOR }} + password: ${{ secrets.DOCKER_GITHUB_PAT }} steps: - name: Checkout repository uses: actions/checkout@v2 @@ -23,20 +26,18 @@ jobs: - name: Build Plugin run: | - # Run the Unreal Automation Tool (UAT) to build the plugin "${{ env.UE_PATH }}/Engine/Build/BatchFiles/RunUAT.sh" \ BuildPlugin \ - -Plugin="${{ github.workspace }}/sdks/ue4/Quilkin.uplugin" \ # Path to the plugin - -Package="${{ github.workspace }}/PluginBuild" \ # Output directory for the built plugin + -Plugin="${{ github.workspace }}/sdks/ue4/Quilkin.uplugin" \ + -Package="${{ github.workspace }}/PluginBuild" \ -Rocket - name: Run Tests run: | - # Run the tests using UE4Editor-Cmd (Command Line) with the Automation framework "${{ env.UE_PATH }}/Engine/Binaries/Linux/UE4Editor-Cmd" \ - -run=Automation \ # Run the Automation framework for testing - -Plugin="${{ github.workspace }}/sdks/ue4/Quilkin.uplugin" \ # Path to the plugin - -unattended \ # Run in unattended mode (no user interaction) - -nopause \ # Do not pause after executing the command - -testexit="Automation Test Queue Empty" \ # Exit when the test queue is empty - -log # Output log information + -run=Automation \ + -Plugin="${{ github.workspace }}/sdks/ue4/Quilkin.uplugin" \ + -unattended \ + -nopause \ + -testexit="Automation Test Queue Empty" \ + -log