Skip to content

Add Procedural Firearm Assets #13

Add Procedural Firearm Assets

Add Procedural Firearm Assets #13

Workflow file for this run

name: Unreal Plugin Cross-Platform Build
on:
push:
branches:
- stable
pull_request:
branches:
- stable
jobs:
build-windows:

Check failure on line 12 in .github/workflows/BuildAndTest.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/BuildAndTest.yml

Invalid workflow file

You have an error in your yaml syntax on line 12
runs-on: [self-hosted, windows-latest, windows-cross-compiler, x64]
steps:
- name: Set up Git
uses: actions/setup-git@v2
with:
git-version: '2.30.0' # Specify a version 2.18 or higher
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true # If your plugin has submodules
- name: Setup Unreal Engine (Windows)
# Use a pre-built Unreal Engine setup action or manually download/install
# For free tier, consider using a minimal engine version if possible,
# or focusing on a specific engine version to reduce download size.
# Example: Using a community-maintained action if available, or a custom script.
# This step is the most critical for free tier usage due to download/disk space.
# A custom script to download a specific, minimal engine version from Epic Games
# or a pre-configured environment in a self-hosted runner would be optimal.
run: |
# Example placeholder for setting up Unreal Engine
# This would involve downloading and extracting a specific UE version
# from Epic's CDN (requires authentication) or a pre-cached version.
# For free tier, manually managing engine versions is often required.
echo "Setting up Unreal Engine for Windows..."
# Add your specific commands here to download/configure UE.
- name: Build Plugin (Windows)
run: |
# Replace with your actual build command for the plugin
# Example: Using UnrealBuildTool
# "C:\Program Files\Epic Games\UE_VERSION\Engine\Build\BatchFiles\RunUAT.bat" BuildPlugin -Plugin="ASLXT.uplugin" -Package=".\Builds\Windows" -TargetPlatforms=Win64
echo "Building Plugin for Windows..."
- name: Return True
run: echo "Return true."
- name: Setup cross-compilation environment (Linux target)
shell: powershell
run: |
# Install or configure cross-compilation toolchains for Linux on Windows
# This might involve installing MinGW-w64 with a Linux target toolchain
# or using a pre-configured environment.
Write-Host "Setting up cross-compilation environment for Linux..."
# Example: Ensure cross-compiler is available in PATH
- name: Build Plugin for Linux
shell: powershell
run: |
# Commands to build your plugin for Linux using the cross-compiler
Write-Host "Cross-compiling plugin for Linux..."
# Replace with your actual cross-compile command
# .\build-plugin.ps1 -target Linux -cross-compiler x86_64-linux-gnu-gcc
# - name: Upload Windows Artifacts
# uses: actions/upload-artifact@v4
# with:
# name: plugin-windows
# path: path/to/your/windows/build/output/
#
# - name: Upload Linux Artifacts
# uses: actions/upload-artifact@v4
# with:
# name: plugin-linux
# path: path/to/your/linux/build/output/