Skip to content

Build

Build #1

Workflow file for this run

name: Build
on:
workflow_dispatch:
workflow_call:
jobs:
build:
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install MinGW i686
run: choco install mingw --x86 -y --no-progress
- name: Update PATH
run: echo C:/ProgramData/mingw64/mingw32/bin/ >> $env:GITHUB_PATH
- name: Install SCFA-python-patcher
run: |
git clone https://github.com/4z0t/SCFA-python-patcher.git
pip install -r ./SCFA-python-patcher/requirements.txt
- name: Download base executable
run: curl -L "https://content.faforever.com/build/ForgedAlliance_base.exe" -o ForgedAlliance_base.exe
- name: Patch base executable
run: |
echo "#define gitsha \"${{ github.sha }}\"" > workflow.cpp
mkdir build
python ./SCFA-python-patcher/main.py "$(pwd)" clang++ ld g++
- name: Upload base executable as artifact
uses: actions/upload-pages-artifact@v3
with:
path: "ForgedAlliance_exxt.exe"